I've recently bought a VDS server with 768MB RAM. All of my RAM is being eaten by Apache(286MB). As lighthttpd is lighter and needs less memory I want to switch to that. I just want to make sure I miss nothing in between. Is there any major differences between them that I'm unaware of?
enter image description here I appreciate in advance.

closed as not constructive by toomanyairmiles, paulmorriss, danlefree May 22 '12 at 2:05

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. If this question can be reworded to fit the rules in the help center, please edit the question.


The biggest thing you have to know is that lighttpd doesn't have the same URL rewriting flexibility as Apache. Any URL rewriting has to be put directly into the lighttpd configuration files as opposed to the .htaccess files ubiquitous in Apache installs.

Also, PHP installation is not quite as straight forward on lighttpd as in Apache because there's no module for it. Lighttpd uses the fastcgi version of PHP. Not that it's a bad thing, just different.

I've used lighttpd with PHP to run the control front end for an on-hold music player in our office and it works quite famously.


You could use lighthttpd, squid or even nginx as a proxy to try and see if proxying lowers the overall resources being used. nginx would probably be your best overall replacement for apache2

Not the answer you're looking for? Browse other questions tagged or ask your own question.