Skip to main content
WordPress powers a huge share of the web because it is flexible and easy to use. This guide walks through installing it on your Opus Host VPS with Nginx, PHP-FPM, and MySQL (a LEMP stack).

1. Install Nginx, MySQL, and PHP

2. Create the WordPress database

At the MySQL prompt:

3. Download WordPress

4. Configure Nginx

Create /etc/nginx/sites-available/example.com:
Enable it and reload:

5. Finish the install in the browser

Visit http://example.com and complete the WordPress setup wizard. Use the database name, user, and password from step 2.

6. Add HTTPS

Once your site loads, secure it with a free certificate. See Let’s Encrypt SSL.
Do not run WordPress as root. The www-data ownership set above is important — it lets PHP-FPM update files (like plugins and themes) without opening security holes.
Change the default admin username during setup and use a long, unique password. WordPress login pages get brute-forced constantly.