Apache and Nginx

November 15, 2016 447 views
Apache Nginx PHP Debian

This is a quick question, i’m considering moving from apache to nginx + phpfpm for performance reasons, however i’ve read that using both is better, you get nginx as static web server for the front and apache processing for the back end.

Is this true or should i just go with nginx + phpfpm

1 Answer

Which solution will perform best can best be determined with real world testing. While nginx+phpfpm can often perform better than apache+modphp this is not always the case. For example, in our own internal testing with our WordPress one-click we found that memory use was slightly lower with Apache+modphp on smaller droplets with a default configuration. At a smaller scale, running both Apache and Nginx may not make a huge difference and would likely result in higher memory requirements than running nginx+phpfpm alone.

Have another answer? Share your knowledge.