KUSANAGI Initialization

KUSANAGI Initialization

Once you have logged in to the virtual machine, you can perform initialization.

For initialization we will use specialized commands.

KUSANAGI commands are designed for KUSANAGI only and can be used for web server switching, cache control and other features after initialization.

The following steps explain the procedures of getting KUSANAGI ready for WordPress.

1. Start initialization

First, use yum to update your CentOS and KUSANAGI system before initializing.
Enter the following command to begin the update.

# yum --enablerepo=remi,remi-php56 update -y

Once the update is completed, continue the steps to initialization.

If you are using Microsoft Azure, use the following command to first reboot the server.

# reboot

You will be logged out so please log in again and switch to the root user.

Next, we will set or change the user passwords of Linux and databases in the virtual machine.
Enter the following to begin.

# kusanagi init

2. Set server timezone

Configure the server’s timezone.

Search or select timezone:

Choose your timezone.
* You can delete as you type.
When the timezone is selected the following will display.

Applying Location: America/New_York.

(Example in the case of selecting a server in New York)

3. Set keyboard layout

Choose your keyboard layout.

Select your keyboard layout.

1 : English
2 : Japanese

q : quit

Which are you using?:

Please select your keyboard layout using a number.
When the keyboard is selected the following will display.

You choose: English

4. Set user password

Next we will set the user password.
* Though the screen shows “Changing password”, it is actually a new password..

Changing password for user kusanagi.
New password:

Enter a password of your choice.
Re-enter the same password to confirm.

Retype new password:

The following will display once the password is set successfully.

passwd: all authentication tokens updated successfully.

5. Set key authentication

Next we will create a key for authentication.
The following message will display.

Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):

Set the passphrase for key authentication.
Enter a passphrase of your choice and hit the Enter key.
(You can leave it blank, but a passphrase is highly recommended.)

The following message will display. Please re-enter the passphrase to confirm and hit the Enter key.

Enter same passphrase again:

The following message will display.

* The public key required for key authentication has been generated as kusanagi.pem in the root directory (/root). You can download it after initialization.

Your identification has been saved in /root/kusanagi.pem.
Your public key has been saved in /root/kusanagi.pem.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx root@
The key's randomart image is:
+--[ RSA 2048]----+
|                 |
|                 |
|                 |
|                 |
|                 |
|                 |
|                 |
|                 |
|                 |

6. Set password for MySQL root

Next we will set a password for MySQL root.
The following will display. Please enter a password of your choice.

Enter MySQL root password. Use [a-zA-Z0-9.!#%+_-] 8 characters minimum.

Re-enter the same password for confirmation.

Re-type MySQL root password.

7. Choose your web server

KUSANAGI can choose middlewares.
Please tell me your web server option.
1) NGINX(Default)
2) HTTPd
Which you using?: 1
You choose: NGINX
use nginx

8. Choose your application server

Then, Please tell me your application server option.
1) HHVM(Default)
2) PHP7
Which you using?: 1
You choose: HHVM
use hhvm

9. Complete initialization

If the following message appears, then initialization is complete.

innodb_buffer_pool_size = 768M
query_cache_size = 192M
KUSANAGI initialization completed

* Numbers shown above may vary, depending on the memory size of the virtual machine.

Initialization is completed.
You can now proceed to WordPress provisioning.