VestaCP is one of our favourite hosting control panel available freely. There are some drawbacks considering it as aa free panel tho. One of which was the lack of app installer.
Recently, the developers of VestaCP has managed to integrate Softaculous within the panel. This is a real game-changer.
Softaculous is a script library that automates the installation of many open source and commercial web applications to a website. Originally, Softaculous was designed as a script installer on a WHM/cPanel server. Nowadays, it becomes the most common auto-installer for many hosting control panels including Directadmin, vestaCP, Webuzo, etc.
Softaculous comes as an optional package to be installed on VestaCP. You can choose whether to install it or to omit it from VestaCP install. See our previous guide on how to install VestaCP.
However, Softaculous coming within VestaCP install is the free version. You need to purchase a separate license ranging from $1.5/month to $24/year depending on which server you want to install (Dedicated or Virtual servers).
The existence of Softaculous in VestaCP is really handy. You can use it to automate the installation of many scripts or apps including WordPress.
Unfortunately, you’ll need to purchase a premium license to be able to install WordPress through Softaculous automatically. See its pricing here.
The free version of Softaculous allows you to install 59 scripts in which WordPress is not one of them. See the list of scripts available in the Softaculous Free.
Trying to install WordPress from the free version of Softaculous will give you this error:
Purchased a license? You can use the first method to install WordPress on VestaCP. Otherwise, use the manual method.
Method 1: Install WordPress on VestaCP Automatically
Step 1 – Login to the VestaCP dashboard then click [Apps] menu at the top.
Step 2 – You’ll see list of most popular scripts and WordPress is one of them. Hover your mouse cursor on it then click [Install].
Step 3 – In the Software Setup section, choose the installation URL including the HTTP protocol, the main domain name, and the sub-folder if you want.
Step 4 – Next, enter the Site Name, Description, Username, Password, and the Admin Email.
Step 5 – Chose the default language for your WordPress dashboard UI. Optionally, you can also opt to install the Loginizer plugin.
Step 6 – Finally, hit that blue [Install] button to start the process.
Step 7 – Wait for Softacculous to do its magic. Once done, you’ll get a link to log in to the WordPress dashboard.
Log in to your newly installed blog using the username and password you defined.
Method 2: Install WordPress on VestaCP Manually
Step 1 – Login to your VestaCP server. Personally, I prefer to log in to WinSCP then go to Putty afterwards.
Step 2 – Download WordPress in the public_html folder of the domain that you wish to install WordPress. Use this command:
cd /home/vestausername/web/domain.tld/public_html wget http://wordpress.org/latest.zip
Change “vestausername” with the actual username of yours in VestaCP, in case if you have many users. Otherwise, it should be admin by default.
Also, change domain.tld with the actual domain name of your website. I use “speedy.monster” as an example.
cd /home/admin/web/speedy.monster/public_html wget http://wordpress.org/latest.zip
Step 3 – Next, extract the downloaded WordPress package. Type:
Once finished, you’ll see something like this:
Step 4 – Now you need to move all the extracted files to the root of public_html directory:
cd wordpress (shopt -s dotglob; mv -- * ..) cd .. rmdir wordpress
Step 5 – Set proper ownership and permission for the WordPress files:
chown -R vestauser:vestauser /home/vestauser/web/domain.tld/public_html chmod -R 755 /home/vestauser/web/domain.tld/public_html
Again, do not forget to change “vestauser” and “domain.tld” in the command above. Example:
chown -R admin:admin /home/admin/web/speedy.monster/public_html chmod -R 755 /home/admin/web/speedy.monster/public_html
Step 6 – Open up your favourite web browser and access your site’s index.php file.
Step 7 – You’ll be redirected to the installation wizard. Choose the default language for your WordPress interface. Click the [Continue] button once done.
Step 8 – Next, click the [Let’s Go] button to start.
Step 9 – You’ll need to enter database connection details in the next page.
Leave that page for a while. We’ll get back to that later.
Step 10 – Open up another new tab and log in to VestaCP dashboard.
Step 11 – Click the [DB] menu then click the [Add Database] button.
Step 12 – Enter the database name (1), database username (2), and its password (3). You can click the “generate” link to automatically obtain a new string password.
Step 13 – You can leave everything else default. Make sure to also enter your email address so that the details can be sent there.
Alternatively, make sure you note down the database name, username, and password. Notepad will come in handy for that.
Once you are sure, click that green [Add] button.
Step 14 – Now go back to the WordPress install wizard. Enter all the database credentials there and hit the [Submit] button.
Step 15 – Finally, click the [Run the installation] button to start the process.
Step 16 – Enter all basic information of your new WordPress site including Site Title, administrator username, password, and your email address. Click the [Install WordPress] button once done.
Step 17 – Once done, click the link to log in to WordPress for the very first time.
Step 18 – Congratulation! You have successfully installed WordPress on VestaCP.
You have learned two methods to install WordPress on VestaCP from this article. The first method is super easy despite it needs a licence to purchase. The second method is also not so difficult.
What you’ve learned from this article:
- All steps to install WordPress on VestaCP (all the Steps).
- How to create a new database on VestaCP (Step 10 – 13).
- How to set proper permission and ownership on VestaCP (Step 5).