{"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":"2025-08-27T06:42:06","modified_gmt":"2025-08-27T06:42:06","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":"<p class=\"no-margin\">KUSANAGI 9 is a high-performance virtual machine optimized for running WordPress and other CMS platforms with superior speed, security, and flexibility. Hostinger&rsquo;s &ldquo;AlmaLinux 9 with KUSANAGI 9&rdquo; VPS template comes with the KUSANAGI environment preinstalled, allowing you to deploy and optimize your web applications quickly.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">This guide will walk you through accessing, configuring, and managing your KUSANAGI 9 installation on AlmaLinux 9.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_8c393f6a7e\">Accessing your VPS<\/h2><p class=\"no-margin\">Open <b>Terminal <\/b>(Linux\/macOS) or <b>Command Prompt\/PowerShell<\/b> (Windows) on your local computer and enter the following command:<\/p><pre><code>ssh root@vps_ip<\/code><\/pre><p class=\"no-margin\">Replace <b>vps_ip<\/b> with your <b><a href=\"\/support\/5139756-how-to-find-your-vps-ip-address\" target=\"_blank\" class=\"intercom-content-link\">VPS IP address<\/a><\/b>. You might be prompted to enter your VPS password.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_f7efe69b09\">Initial KUSANAGI setup<\/h2><p class=\"no-margin\">After logging in, perform the initial setup using the built-in &ldquo;KUSANAGI Commands.&rdquo; These commands assist in tasks like initial configuration, switching web servers, and managing cache. For a comprehensive list, see <a href=\"https:\/\/kusanagi.tokyo\/en\/document\/commands\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">KUSANAGI 9 Commands<\/a>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Initialize KUSANAGI<\/p><p class=\"no-margin\">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><pre><code>kusanagi init --lang en --keyboard en --passwd \"your_password\" --nophrase --dbrootpass \"db_root_password\" --nginx127 --php81 --mariadb10.6<\/code><\/pre><p class=\"no-margin\"><b>Required Options:<\/b><\/p><p class=\"no-margin\">&bull; &ndash;passwd &ldquo;your_password&rdquo;: Sets the password for the &ldquo;kusanagi&rdquo; user.<\/p><p class=\"no-margin\">&bull; &ndash;nophrase: Sets an empty passphrase for the SSH user key of the &ldquo;kusanagi&rdquo; user.<\/p><p class=\"no-margin\">&bull; &ndash;dbrootpass &ldquo;db_root_password&rdquo;: Sets the MariaDB &ldquo;root&rdquo; password.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Optional Options:<\/b><\/p><p class=\"no-margin\">&bull; &ndash;nginx127: Starts NGINX version 1.27.<\/p><p class=\"no-margin\">&bull; &ndash;php81: Uses PHP version 8.1.<\/p><p class=\"no-margin\">&bull; &ndash;mariadb10.6: Starts MariaDB version 10.6.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Refer to <a href=\"https:\/\/kusanagi.tokyo\/en\/document\/commands\/init\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">the init command documentation<\/a> for a detailed explanation of these options.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_6ee78277e8\"><b>Installing WordPress<\/b><\/h2><p class=\"no-margin\">After completing the initial configuration, you can set up WordPress using the &ldquo;KUSANAGI Commands.&rdquo; First, create a profile for your WordPress site:<\/p><pre><code>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><p class=\"no-margin\"><b>Required Options:<\/b><\/p><p class=\"no-margin\">&bull; &ndash;wp: Specifies that WordPress will be provisioned.<\/p><p class=\"no-margin\">&bull; &ndash;fqdn your_domain.com: Sets the fully qualified domain name for your site.<\/p><p class=\"no-margin\">&bull; &ndash;email <a href=\"mailto:your_email@example.com\" target=\"_blank\" class=\"intercom-content-link\">your_email@example.com<\/a>: Requests a Let&rsquo;s Encrypt SSL certificate for your domain.<\/p><p class=\"no-margin\">&bull; &ndash;dbname your_db_name: Sets the name of the database.<\/p><p class=\"no-margin\">&bull; &ndash;dbuser your_db_user: Sets the database username.<\/p><p class=\"no-margin\">&bull; &ndash;dbpass &ldquo;your_db_password&rdquo;: Sets the password for the database user.<\/p><p class=\"no-margin\">&bull; your_profile_name: Names the profile being created.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">For more details on provisioning, see the <a href=\"https:\/\/kusanagi.tokyo\/en\/document\/commands\/provision\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">KUSANAGI Provisioning guide<\/a>.<\/p><p class=\"no-margin\">\n<\/p><h2 id=\"h_72a6a206d7\"><b>Finishing the WordPress installation<\/b><\/h2><p class=\"no-margin\">WordPress installation can be finished from your browser, so first launch your browser and access the domain (FQDN) that you specified during provisioning.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">After accessing the domain (FQDN), you will be prompted to the login screen, where you should enter &ldquo;kusanagi&rdquo; as a login name and kusanagi password from the&nbsp;<a href=\"#h_f7efe69b09\" target=\"_blank\" class=\"intercom-content-link\">initial setup step<\/a>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">In the WordPress setup window, enter the basic information of your WordPress site, the site administrator&rsquo;s user information, etc. And finish the installation.<\/p><div class=\"intercom-container intercom-align-center\"><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2025\/01\/2513b29a-1048-409b-85c5-9855ff2941df.jpg\" alt=\"WordPress setup window\"><\/div><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">With Hostinger&rsquo;s &ldquo;AlmaLinux 9 with KUSANAGI 9&rdquo; 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><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">For further details, refer to the official <a href=\"https:\/\/kusanagi.tokyo\/en\/document\/kusanagi-quickstart\/\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">KUSANAGI documentation<\/a>.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting Started with KUSANAGI VPS template<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[206],"tags":[],"class_list":["post-424","post","type-post","status-publish","format-standard","hentry","category-vps-os-and-templates"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/10469876-how-to-use-the-kusanagi-vps-template-at-hostinger\/","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/424","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=424"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/424\/revisions"}],"predecessor-version":[{"id":2136,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/424\/revisions\/2136"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}