Apache and Nginx

Posted November 15, 2016 2k views

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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.