WordPress Provisioning

WordPress Provisioning

Once you have completed initialization, you can provision KUSANAGI to run WordPress. You can change the web server, database and WordPress settings using specialized commands..

1. Run “kusanagi provision” command

Enter the following:

# kusanagi provision [Any profile name]

Example: # kusanagi provision kusanagi_html

In the above example, the directory “/home/kusanagi/kusanagi_html/” will be generated, and the document root is created in this directory. Data needed for the installation of WordPress is stored here.

Target directory is /home/kusanagi/[Directory name].

The above message will appear. Please proceed to the next step.

2. WordPress language selection

Choose the installation language of WordPress.

Choose the installation language of WordPress.

1 : en_US
2 : ja

q : quit

Which do you choose?

* When you select “en_US” this will enable you to change the language at installation. Only WordPress Japanese version is installed when you select “ja”.
The following will display.

You choose: en_US

3. Set host name

The following will display.

Enter hostname(fqdn) for your website. ex) kusanagi.tokyo

Enter the host name (FQDN).
Example: www.host.com
* Do not include “http://” or “/” at the end.

The following message will display. Please re-enter the host name to confirm.

Re-type hostname(fqdn) for your website.

4. Install Let’s Encrypt

The following will display.

In order to use Let's Encrypt services, you must agree to Let's Encrypt's Term of Services.
If you agree to this TOS, type your email address; if not, hit enter twice
TOS of Let's Encrypt : https://letsencrypt.org/repository/

Let’s Encrypt is a free project that issues free SSL certificates.
Details can be found on the official site.
At  this prompt, enter your email address to install and use Let’s Encrypt SSL certificate. If you do not wish to use this service, hit Enter twice without typing an email address.

Enter your email address.
Example:kusanagi@host.com

Enter your email again when the following appears.

Re-type mail address.

5. Set database name

Follow these steps to set the database name.
The following screen will display. Enter a name for the database.

Enter the name of your database.

The following message will display after you enter the database name. Please re-enter it to confirm.

Re-type database name you create.

* You will need to use this database name later when installing WordPress. Please make a note of it.

6. Set database user name

Follow the steps to set a user name for the database you created.

The following screen will display. Enter a user name for the database.

Enter user name for database 'Database name'.

The following message will display after you enter the user name. Please re-enter it to confirm.

Re-type user name for database 'Database name.

7. Set database user password

Follow the steps to set a password for the database user.
The following screen will display. Enter a password of your choice.

Enter password for database user 'Database user name'. USE [a-zA-Z0-9.!#%+_-] 8 characters minimum.

The following message will display after you enter the password. Please re-enter it to confirm.

Re-type password for database user 'Database user name'.

8. Complete provisioning

The following message will display once step 7 is complete.
Provisioning is now finished.
* The size and address will vary depending on the WordPress version. In addition, the screen will change depending on the language of CentOS.

--2015-12-9 00:00:00--  https://wordpress.org/latest.tar.gz
Resolving wordpress.org (wordpress.org)... 66.155.40.250, 66.155.40.249
Connecting to wordpress.org (wordpress.org)|66.155.40.250|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7079339 (6.8M) [application/octet-stream]
Saving to: ‘wordpress.tar.gz’

100%[==============================================================================================================================================>] 7,079,339   2.14MB/s   in 3.2s   

2015-12-9 00:00:00 (2.14 MB/s) - ‘wordpress.tar.gz’ saved [7079339/7079339]
[root@<host name> ~]#

If you have installed Let’s Encrypt, this will also display.

Updating letsencrypt and virtual environment dependencies......
Requesting root privileges to run with virtualenv: /root/.local/share/letsencrypt/bin/letsencrypt certonly --webroot -w /home/kusanagi/"directory"/DocumentRoot -d "domain" -m "email address" --agree-tos

IMPORTANT NOTES:
 - If you lose your account credentials, you can recover through
   e-mails sent to "email address".
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/"your domain"/fullchain.pem.
   Your cert will expire on 2016-05-04. To obtain a new version of the
   certificate in the future, simply run Let's Encrypt again.
 - Your account credentials have been saved in your Let's Encrypt
   configuration directory at /etc/letsencrypt. You should make a
   secure backup of this folder now. This configuration directory will
   also contain certificates and private keys obtained by Let's
   Encrypt so making regular backups of this folder is ideal.
 - If you like Let's Encrypt, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

When this message appears, everything is complete.

Provisioning of "directory" completed. Access "domain" and install WordPress!
[root@<hostname> ~]#

Next, install and configure WordPress from your browser.