{"id":424,"date":"2025-01-27T12:30:42","date_gmt":"2025-01-27T12:30:42","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2025\/01\/27\/10469876-how-to-use-the-kusanagi-vps-template-at-hostinger\/"},"modified":"2026-05-08T13:01:36","modified_gmt":"2026-05-08T13:01:36","slug":"10469876-how-to-use-the-kusanagi-vps-template-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/10469876-how-to-use-the-kusanagi-vps-template-at-hostinger\/","title":{"rendered":"How to Use the KUSANAGI VPS Template at Hostinger"},"content":{"rendered":"
KUSANAGI 9 is a high-performance virtual machine optimized for running WordPress and other CMS platforms with superior speed, security, and flexibility. Hostinger’s “AlmaLinux 9 with KUSANAGI 9” VPS template comes with the KUSANAGI environment preinstalled, allowing you to deploy and optimize your web applications quickly.<\/p>
\n<\/p>
This guide will walk you through accessing, configuring, and managing your KUSANAGI 9 installation on AlmaLinux 9.<\/p>
\n<\/p>
Open Terminal <\/b>(Linux\/macOS) or Command Prompt\/PowerShell<\/b> (Windows) on your local computer and enter the following command:<\/p> Replace vps_ip<\/b> with your VPS IP address<\/a><\/b>. You might be prompted to enter your VPS password.<\/p> \n<\/p> After logging in, perform the initial setup using the built-in “KUSANAGI Commands.” These commands assist in tasks like initial configuration, switching web servers, and managing cache. For a comprehensive list, see KUSANAGI 9 Commands<\/a>.<\/p> \n<\/p> Initialize KUSANAGI<\/p> Set passwords for the Linux and database users, and choose the middleware you wish to use. Use the following command to replace placeholders with your desired passwords:<\/p> Required Options:<\/b><\/p> • –passwd “your_password”: Sets the password for the “kusanagi” user.<\/p> • –nophrase: Sets an empty passphrase for the SSH user key of the “kusanagi” user.<\/p> • –dbrootpass “db_root_password”: Sets the MariaDB “root” password.<\/p> \n<\/p> Optional Options:<\/b><\/p> • –nginx127: Starts NGINX version 1.27.<\/p> • –php81: Uses PHP version 8.1.<\/p> • –mariadb10.6: Starts MariaDB version 10.6.<\/p> \n<\/p> Refer to the init command documentation<\/a> for a detailed explanation of these options.<\/p> \n<\/p> After completing the initial configuration, you can set up WordPress using the “KUSANAGI Commands.” First, create a profile for your WordPress site:<\/p> Required Options:<\/b><\/p> • –wp: Specifies that WordPress will be provisioned.<\/p> • –fqdn your_domain.com: Sets the fully qualified domain name for your site.<\/p> • –email your_email@example.com<\/a>: Requests a Let’s Encrypt SSL certificate for your domain.<\/p> • –dbname your_db_name: Sets the name of the database.<\/p> • –dbuser your_db_user: Sets the database username.<\/p> • –dbpass “your_db_password”: Sets the password for the database user.<\/p> • your_profile_name: Names the profile being created.<\/p> \n<\/p> For more details on provisioning, see the KUSANAGI Provisioning guide<\/a>.<\/p> \n<\/p> WordPress installation can be finished from your browser, so first launch your browser and access the domain (FQDN) that you specified during provisioning.<\/p> \n<\/p> After accessing the domain (FQDN), you will be prompted to the login screen, where you should enter “kusanagi” as a login name and kusanagi password from the initial setup step<\/a>.<\/p> \n<\/p> In the WordPress setup window, enter the basic information of your WordPress site, the site administrator’s user information, etc. And finish the installation.<\/p> \n<\/p> With Hostinger’s “AlmaLinux 9 with KUSANAGI 9” VPS template, you can quickly deploy a high-performance, secure web hosting environment. By following the steps outlined in this guide, you can easily set up, configure, and optimize your web application.<\/p> \n<\/p>ssh root@vps_ip<\/code><\/pre>Initial KUSANAGI setup<\/h2>
kusanagi init --lang en --keyboard en --passwd \"your_password\" --nophrase --dbrootpass \"db_root_password\" --nginx127 --php81 --mariadb10.6<\/code><\/pre>Installing WordPress<\/b><\/h2>
kusanagi provision --wp --wplang en_US --fqdn your_domain.com --email your_email@example.com --dbname your_db_name --dbuser your_db_user --dbpass \"your_db_password\" \"your_profile_name\"<\/code><\/pre>Finishing the WordPress installation<\/b><\/h2>
<\/div>