0

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.

1

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.

| improve this answer | |
1

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

| improve this answer | |

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