Report this

What is the reason for this report?

Apache and Nginx

Posted on November 15, 2016

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



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.