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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.