Why Is Apache Used Over Nginx For Wordpress One-Click?

October 13, 2016 2.3k views
Apache WordPress Nginx Ubuntu

Just out of curiosity, why is Apache preferred for Wordpress one-click?

I just created one and wanted to know the reason and if it's completely fine to use Nginx instead.

2 Answers

maybe because vast majority use apache as web server. wordpress needs htaccess file to work and to use nginx with wordpress you need many changes in configuration. as for the last part of your question, ofcourse its better if you choose Nginx over Apache.

if you follow this tutorial you can create and run wordpress site with nginx in couple of minutes only.

How To Install WordPress with Nginx on Ubuntu 14.04

if you want to use Ubuntu 16.04
How To Install WordPress with LEMP on Ubuntu 16.04

by Justin Ellingwood
WordPress is the most popular CMS (content management system) in the world. It can be used to get your site or blog off the ground quickly and it provides a nice interface for adding content and modifying the site's design. In this guide, we'll walk through how to install WordPress on Ubuntu 14.04 with an Nginx web server.

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.

Another option is to use Nginx as a reverse proxy in front of Apache. This allows your apps to still use .htaccess files but you get the benefits of Nginx. That's the approach ServerPilot uses. There's more info about it here:


Have another answer? Share your knowledge.