After struggling with low web server performance on this Raspberry Pi (running rasbian)I finally decided to change things, not an enticing prospect…

Its been running apache2, php5 and mysql(i)

For various reasons apache2 isn’t ideal in low memory situations, especially with mysql running too

The easiest option is to change from apache to something a little slimmer, after a quick read of some internets I decided to try lighttpd

the install is as folows:

apt-get install lighttpd

apt-get install mysql-server    (only if you havent done it already)

apt-get install php5-common php5-cgi php5

apt-get install php5-mysql

lighty-enable-mod fastcgi-php

service lighttpd force-reload

and that’s it, including the steps required to get lighttpd working with php

if you have apache installed on the same system change its listening port away from 80  by changing /etc/apache2/ports.conf

service apache2 reload will restart apache on its new port leaving lighttpd serving to port 80, job done

and a much more responsive stack it is too

certainly worth trying if you have been struggling with apache because its what you know 🙂

This entry was posted in faf. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s