In this guide, we will install VestaCP and WordPress to Host our own Website on a VPS.

First, we need to download the necessary software:

Filezilla: This is an FTP software which we will use to access the files on our VPS.  Don’t worry as with all software on this list, it is also free and open source.

Download link: https://filezilla-project.org/

Putty: We will use this software to access the OS (Operating System) of our VPS. It is free as well.

Download link: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

Latest WordPress: We need to download the latest WordPress files for our Clean WordPress installation.

Download link: https://wordpress.org/download/

Now let’s start the guide:

1. Buy a VPS. (It depends on your use case which VPS package you need to buy, but for most people, the cheapest one is sufficient to start out with.)

 

2. Choose an OS for your VPS, I recommend either Debian or CentOS because these are both very stable Linux Distributions. Also, choose an X86 version instead of the X64 version as the X64 version has no significant benefit for a normal website, however it uses much more System resources.

Only if you expect a huge amount of visitors and you are going to use a VPS with 4+ Gigabyte of Ram or a Dedicated server then  I recommend using the X64 version.

 

3. Once you finished with your VPS setup, you can  start Putty and use the IP and SSH Port to access your VPS OS.

 

4. Login as root and use your password. (You may need to change your password depending on OS.)

5. Install updates on your OS. ( If needed. )

If you chose Debian OS type in:

apt-get update ( This will update your repositories with the latest package informations. )

apt-get upgrade ( This will download and install fresh packages if there is any. )

(You can copy-paste these commands into Putty by right clicking in the putty window and it will copy whatever you have on your clipboard.)

If you chose CentOS OS type in:

yum update    (No need for yum upgrade as it performs the same function in CentOS)

 

6. Use the following scripts in this order:

6/a Downloading VestaCP from their servers with the CURL command:

curl -O http://vestacp.com/pub/vst-install.sh

If the system is missing the curl command then you need to install it with one of these:

apt-get install curl (Debian)
yum install curl ( CentOS )

 

6/b Then Install VestaCP with this command:

bash vst-install.sh –nginx yes –apache yes –phpfpm no –named yes –remi yes –vsftpd yes –proftpd no –iptables yes –fail2ban yes –quota no –exim yes –dovecot yes –spamassassin yes –clamav yes –mysql yes –postgresql no

(You can also generate your own install script at https://vestacp.com/install/)

(Once VestaCPis installed you can type in exit to exit the console or simply close the window.)

 

7. Once we installed VestaCP login at:

https://yourdomain.tld :8083   (Or with ‘www’.)

or

https://yourvpsIP:8083

Accept that it is unsafe. (It is your server after all…)

 

8. Create your web server and create a database for WordPress in VestaCP. Write down the info that you used to create the database with.

9. Download the latest WordPress ZIP and extract it.

 

10. Then rename the wp-config-sample to wp-config.

11. You also need to edit the wp-config file by adding the information of your database.

Edit these lines according to your database settings you just set before:

define(‘DB_NAME’, ‘admin_wordpress’);

/** MySQL database username */

define(‘DB_USER’, ‘admin_wpuser’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘oeysvULuTm’);

 

12. Start Filezilla and access your VPS.:

Upload the WordPress files with the changes to:  /home/admin/web/yourdomain.com/public_html

You need to also delete the HTML file that’s already there as it’s only the default VestaCP Home website.

Type in your domain or VPS IP and the WordPress installation will start!

 

And you are Done!

 

Extra notes:

You might need to change permissions at /home/admin/web/yourdomain.com/public_html to your WordPress installation. (You can change file Permissions with FileZilla)

WordPress might ask you for your FTP details when you try to upload to your WordPress, in this case just create a new FTP in VestaCP.

Author HostMyGuild
Published
Categories VPS
Views 149

Comments

No Comments

Leave a Reply