WordOps: Install WordPress on Nginx in 5 Seconds

Pinterest LinkedIn Tumblr

Fastest way to install WordPress blog on Nginx webserver using WordOps one-line command. Anyone can do this, even newbies.

In a glance, WordOps is a LEMP installer script to help building a webserver as easy as pie. You can read our previous post about WordOps and how to install it.

Let’s start, shall we?

Install WordPress

First, install WordOps on your cloud/VPS server. You might also want to install full WordOps stack (optional).

Second, make sure you already add proper DNS records for your domain. We suggest you use Cloudflare.

We have a nice guide on how to use Cloudflare as free DNS service.

Third, install WordPress using this command:

wo site create domain.tld --wp

Replace domain.tld with your own domain name. Example:

wo site create --wp

You might want to also install caching plugin automatically by adding one of following options:

–wpce for Cache Enabler
–wpfc for FastCGI
–wpredis for Redis Object Cache
–wprocket for WP Rocker
–wpsc for WordPress Super Cache

Hence, you can add one of these to the command. See example below:

wo site create --wpce

In this example, we install WordPress at our domain with Cache Enabler plugin.

The process should finish within 5 seconds.

The username and password are displayed. Copy it to a safe place.

install wordpress

That’s it. Now you have created a new WordPress blog.

Basic Setup

Log in to WordPress dashboard at http://yourdomain.tld/wp-admin/

Next, you may notice Updates message being displayed. Despite WordOps will always install the latest version of WordPress, some plugins and themes are not.

Update them manually by selecting the plugin(s) or theme(s), then click Update button.

Basic Security

While all the above steps are adequate to set a WordPress site up and running, you may want to make it accessible through HTTPS secure protocol.

Here’s how to enable it.

Go back to Putty or Terminal then use this command to install free SSL certificate.

wo site update domain.tld -le


wo site update -le

WordOps will request for free SSL from Let’s Encrypt and will install it on your domain.

At this point, you have installed and activated SSL on your server for that specific domain.

However, you’ll get a weird error if you try to open your site in a browser now. Even the SSL certificate is valid.

How to fix mixed content on WordPress when accessed through https?

Go to Plugins, then click Add New.

Search for SSL then install Really Simple SSL.

Go ahead activate it.

Don’t hesitate, activate it now.

Now if you access your site again, the mixed content error will not be seen.

install wordpress

What’s next? You will also need to protect your login form from any bruteforce attacks.

Go to Plugins, Add New, then search for WP Cerber. Click Install then Activate.

That’s it. The basic settings of WP Cerber is sufficient for most WordPress installs.

Basic Optimizations

Switching PHP Version

WordOps comes with multiple PHP versions. No EOL PHP 5.x though. Only PHP 7.2, 7.3, and the latest 7.4.

Any newer PHP versions (if any) will be supported by the next release of WordOps installer.

At the time of writing, PHP 7.3 is the default. You can use PHP Info (WP) to check the current details:

You can also use this command in Terminal or Putty:

php -v

Update, downgrade, or switch to another version using command below:

wo site update domain.tld --php74


wo site update --php74

The process should finish in 3-5 seconds.

More Optimization

If you are a fand of Cache Enabler plugin just like us, you can combine it with Autoptimize plugin.

What this plugin does is optimizing .js, .css, .html files.

Download Autoptimize directly from Plugins then Add New.

Once activated, enable optimizations for css, js, dan html.

Page Load Speed Test

Our setup used in this test is LEMP by WordOps, Cache Enabler, Autoptimize, a custom theme, and some demo contents.


GTMetrix detects have 39 requests.

Fully loaded time is 2.3 seconds.

Pingdom Tools

Quick Tip

Example above installs WordPress with standard http then updates it using https by Let’s Encrypt.

You can also install WordPress with valid SSL directly in a single command:

wo site create domain.tld --wpce -le

Again, you can always replace –wpce with another options.

wo site create --wpce -le

Thus, you will have a WordPress site with a caching mechanism you wanted, and valid SSL certificate.

Once installed, you can also switch between caching mechanism.

We don’t recommend this. Proceed only if you really need to change from one caching to another.

wo site update --wpfc


WordOps makes it super easy to install WordPress on any VPS or cloud server.

You’ll get a complete package of LEMP and WordPress.

Should you have any questions please do to hesitate to write comments below.

A blogger by hobby. He is an ordinary worker at day, a hybrid sys-admin at night. Sharing knowledge through blogs is his passion. He likes ice cream BTW.

Write A Comment