Installing a control panel on your VPS

From Arch Hosting Wiki
Jump to: navigation, search

If you aren't as familiar with Linux command line administration, you may want to install a control panel on your VPS. This will allow you to perform some website management without needing to execute many command line instructions.    You can choose to install cPanel, which is by far the most popular control panel. However, cPanel is also not free and has a license fee of roughly $15/mo. You can acquire a cPanel license for a VPS from a cPanel license reseller such as http://buycpanel.com   There are many alternatives to cPanel, including free alternatives, and you can find a list here: https://alternativeto.net/software/cpanel/?license=free  

Installing VestaCP

For this guide, we will install VestaCP. First, you should make sure your VPS is running a compatible operating system. VestaCP currently supports:

  • CentOS 5, 6, and 7
  • Debian 7, 8, and 9
  • Ubuntu 12.04 through 18.04

We recommend using CentOS 7, though any choice will work. If you do not have one of these versions, you can reinstall your VPS' operating system via your VPS control panel at manager.archhosting.net. If your VPS has 2 GB of RAM or higher, you should install the 64-bit version of the OS if available.

    To begin, you will need to SSH into your VPS so that you can execute the installation commands.   To SSH into your VPS, download an SSH client such as Putty. You can download Putty for Windows systems here: https://the.earth.li/~sgtatham/putty/latest/w64/putty.exe   Once Putty is open, enter the IP address of your VPS in the "Host Name" field and click open. The port should be 22. You can find your VPS' IP address by checking the welcome email that is sent upon order placement. 

  bJhrAzs.png  

Once connecting, if you see a pop-up message warning you about host key identification you can click Yes/Okay.   When you see the "login as" prompt, type "root" and press enter.   When you see the password prompt, enter the password you chose upon order placement or OS installation to proceed. Once you have successfully connected to your server, you should see something similar to this:

  Bjo0YWr.png

 

Next, execute the following two commands to begin installation of VestaCP.  

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

bash vst-install.sh  

To paste something into Putty, just right click the terminal screen. If you receive an error about CURL not being installed, you can use the command "yum install curl -y" to install it on CentOS and the command "apt-get install curl" to install it on Debian or Ubuntu.  

You will be prompted several questions during the installation process. The first prompt will be a Y or N prompt, enter "Y" to confirm the installation.   

When asked for a FQDN, enter a domain you wish to use with the VPS. This should usually also be what you set your server's hostname as.   Next, allow up to 15 minutes for the installation to finish.

Once your installation is complete, you will be given your admin login URL, username, and password on the terminal screen. You should then copy and paste that login URL (it will usually be your server's IP address with :8083 added to the end) into your web browser and proceed to log in. You will probably receive an SSL error in your web browser; you should skip past that.

Adding your domain to your VPS

First, you will need a DNS host. We recommend registering for free at cloudflare.com. Once you have your domain, update the domain's nameservers to point to Cloudflare's nameservers. Once your domain is attached to Cloudflare, you should create some DNS records pointed to your server's IP address. 

Record #1

Type: A

Name: @

Value: Your server's IP address

Record #2

Type: A

Name: www

Value: Your server's IP address

Record #3

Type: MX

Name: @

Value: Your server's IP address

Record #4

Type: TXT

Name: @

Value: v=spf1 +a +mx +ip4:YOURSERVERSIPADDRESS +mx:YOURSERVERSIPADDRESS ~all

If you have any subdomains, you should also create A records for them with the name the same as the subdomain and the value pointing to your server's IP.

You should probably not have Cloudflare enabled on these records, so click the orange cloud to transform it to grey.

After that, you should be able to access your VestaCP installation by visiting https://yourdomain.com:8083

To add your domain to VestaCP if you wish to host it as a site, visit the "Web" section and click the large plus icon.