Report this

What is the reason for this report?

Should I use Nginx or Apache for my Wordpress Install?

Posted on September 11, 2018

tl;dr - Nginx or Apache for WP install, and WHY?

Which of these web server options are the best option for installing and sustaining a Wordpress instance? After reading dozens of articles and forum posts I’m leaning towards Nginx, but there may be some drawbacks as mentioned by @jsamuel, in [this discussion response](https://www.digitalocean.com/community/questions/why-is-apache-used-over-nginx-for-wordpress-one-click?

"It is possible to host WordPress using only Nginx without Apache at all, but because WordPress won’t be able to use .htaccess files (.htaccess files are an Apache feature, they don’t exist in Nginx), you’ll need to regularly be reconfiguring Nginx for various WordPress plugins. You should only take that approach if you’re comfortable with the command line and server administration."answer=31242/)

  1. How To Install WordPress with LEMP on Ubuntu 18.04 - NGINX
  2. How To Install WordPress with LAMP on Ubuntu 18.04 - APACHE
  3. How To Use the WordPress One-Click Install on DigitalOcean - uses Apache

Is the ability to use .htaccess files still a concern if one was to use Nginx? Any clarification on this would be so helpful.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.