Apache and Nginx

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Which solution will perform best can best be determined with real world testing. While nginx+phpfpm can often perform better than apache+mod_php 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+mod_php 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.