Warning: Installing WordPress on your Hypernode has some serious security implications: Although Magento is quite secure, many vulnerability issues are discovered in WordPress extensions. We recommend running your WordPress blog on a different server than your webshop as a security leak in WordPress causes attackers to have full access to your webshop!

Due to high demand we decided to document how to install WordPress on Hypernode. This is at your own risk!

Installing wp-cli

To install WordPress we’ll make use of wp-cli, a commandline utility to manage and install WordPress sites.

To install WordPress cli, run the following commands:

This will install the wp-cli utility to /data/web/bin/wp-cli

Create a database

First create a database for WordPress:

Installing WordPress

To install WordPress on Hypernode, we’ll use the /data/web/public/blog directory.

Create a directory

Download WordPress to the blog/ directory

Unpack WordPress and create a wp-config.php

Install WordPress and load the database schema:

Activate all plugins, sync the database schema and flush the cache:

Now your WordPress is fully installed.

Configuring WordPress to work in a subdirectory

To configure WordPress to work in a subdirectory, add the following snippet to the top of your wp-config.php:

Configuring Nginx to serve WordPress in a subdirectory

Now all we need to do is configuring Nginx to serve a WordPress site in a subdirectory.

Create a /data/web/nginx/server.wordpress with the following content:

Visit your WordPress site

After installing and configuring Nginx, you can visit your WordPress at /blog/

Multisite

It is possible to setup a multisite environment in WordPress. To do this, refer to the original WordPress documentation about creating multisites and the article about configuring WordPress on Nginx

Please note that it won’t work in all cases due to the fact that certain Nginx configurations cannot be changed. At the moment we are still looking into a solution that will work for everyone.

00