Search code examples
apachenginxwebserverlighttpdcherokee

Apache, lighttpd, nginx, cherokee, what's the best combination?


I have a blog, dynamic (php) and static content (images, css, js). I googled a lot to find benchmarks on each server and figured out that there's actually no best server. Therefore I'm looking for returns on experience to choose the good combination.

Update in response to wheaties: well, my needs are I think, the same as everyone; I need all my pages to load quickly--including static content--an I need the highest HTTP queries/second rate possible. Also, if it can help, I'm using MongoDB. Btw, do I still need to cache my DB queries with this?


Solution

  • Regarding Apache and Nginx:

    I used Apache for almost 10 years. Then I discovered Nginx.
    Quickly I found Nginx appealing

    • simple and powerful C code
    • configuration syntax is intuitive and elegant
    • Nginx was built with performance and efficiency in mind. It is incredibly efficient, even with thousands of connections.
    • php-fpm works well with Nginx

    So, I would recommend, between the two (Apache and Nginx), Nginx.