Physics_Dude
Posts: 4
Joined: Fri Sep 28, 2012 3:19 pm

Performance Optimizations for a Raspberry Pi web server

Fri Sep 28, 2012 5:10 pm

We know that the Pi is somewhat limited, but quite capable of hosting a decent MySQL, Apache2, PHP, etc. web server. I set up mine as my own WordPress blog, which includes said fixings above, and it works just fine, except for the fact that there is an agonizing ~4sec TTFB (Time to first byte) on the WordPress pages. This is due to all the processing that must go on under the hood to piece together these requested documents. A directly requested html document has no observable TTFB.

So I ask here if anyone has any pointers on how to optimize the configs for MySQL, Apache2 etc. for the limited specs of the Pi.
Any info is appreciated.

Also, my Pi is already overclocked safely to 1GHz Turbo; this improved previous TTFBs by about one second.

elatllat
Posts: 1337
Joined: Sat Dec 17, 2011 5:05 pm

Re: Performance Optimizations for a Raspberry Pi web server

Fri Sep 28, 2012 6:26 pm

... WordPress is the wrong tool for the rpi, but if you really want to use it then install a good caching plugin so you only have to serve one prebuilt gz file per page to norrmal users.
SBC with 32GB RAM: https://hardkernel.com

FAQ : https://raspberrypi.stackexchange.com

Unanswered: https://www.raspberrypi.org/forums/search.php?search_id=unanswered

Return to “Networking and servers”