WordPress GET Variables with lighttpd

Posted by & filed under PHP, Web Server.

Due to RAM restrictions on various servers I’ve had to use, I learned to axe Apache a long time ago. I’ve replaced it with lighttpd, although I’ll probably be transitioning over to nginx sooner or later (it’s what we use at work, and seems to be even lighter in the memory consumption department). Therefor, all… Read more »

A Primer on Web Caching

Posted by & filed under Web Server.

A lot of this article will apply to any network based application, but since I’m a web developer, I’m going to put a web spin on things. Also, I couldn’t help but get into compression a little while discussing browser caching. Caching is a vital part of any high traffic web app, especially ones which… Read more »

lighttpd configuration to redirect subdomains

Posted by & filed under Web Server.

For our NeoInvoice project, all requests to the server’s sub-domains are sent right to the main server. This means someone can go to www.neoinvoice.com, ex1.neoinvoice.com, etc. Search engines don’t like to see duplicate content on web servers, cookies being saved on one sub-domain aren’t accessible to another, there are all sorts of problems with this…. Read more »

Apache2 Outperforming lighttpd 1.5

Posted by & filed under Web Server.

Here’s an output of top on my VPS running Ubuntu 10.04. The first output is while a server was running Apache2 (and lighttpd on a secondary port). The Apache2 instances were under heavy stress testing at the time, and their total CPU was 30.2%. In the second output, lighttpd had taken over as the main… Read more »

Installing lighttpd on Ubuntu 10.04

Posted by & filed under Web Server.

On a VPS with 512 MB of RAM, installing a LAMP stack (Linux, Apache, MySQL, PHP) and the trimmings (eaccelerator @ 40MB, memcached @ 40MB) eats up a LOT of RAM (in my particular case, about 480 MB). In an attempt to bring the amount of RAM usage down, I was looking through the results… Read more »