These fairly simple step by step instructions have been confirmed to work on a Vultr VPS with LAMP with Bitvise. They may possibly work for other Vultr Linux VPS set ups as well.
The first step is to log into your VPS server with file transfer software. If you don’t have one, the free Bitvise SSH Client is a noteworthy solution. Bitvise is a free secure file transfer software and it’s easy to use.
Of course, other file transfer software should work as well.
After you you’ve logged into your Vultr VPS through appropriate file transfer software follow the steps below.
Add/Create folder domainname (without extension) in: /var/www
Add/Create file index.html in: /var/www/domainnamefolder
Go to: /etc folder and edit “hosts” file. For each domain to add, add line:
Go to: /apache2 folder and open: /sites-available folder
Add/Create file: domainname.com.conf
Edit the file to contain:
between the brackets <>,
replace code with VirtualHost *:80
replace /code with /VirtualHost
Go to the terminal and enable a new additional site, for each url type or copy in terminal :
sudo a2ensite siteurl.com (replace siteurl.com with your domain name).
Note that if you use the copy and paste function in your Linux terminal, most likely paste will not work. Instead of ctrlV try right clicking your mouse instead.
Reload command in terminal, type or copy in terminal:
sudo /etc/init.d/apache2 reload
Again, if you use the copy and paste function in your Linux terminal, most likely paste will not work. Instead of ctrlV try right clicking your mouse instead.
a. Make sure the DNS is added in the Vultr control panel with the correct IP Address.
b. Make sure name server is edited your domain registrar with the correct Vultr name servers.
That should do it.
Hopefully this article saved you some time. Let us know how it worked out for you in the comments below.
|Thinking about a VPS? We recommend and use Interserver for hosting and VPS. We’ve personally tried many companies and found their service and support the best. They offer more for less. Get a free webuzo control panel and one click install of hundreds of applications including WordPress and popular cloud apps. Exclusive offer for readers of our blog…|
VPS with 2GB RAM and 30GB of SSD storage and 2TB of transfer for $6 a month.