VPS is the next step to upgrade your website to a higher level after using shared hosting. Working with VPS makes you confuse for the first time to start; especially, when you need to install Vestacp on Ubuntu to manage your multiple WordPress websites. Here are the guides on how to set up your first control panel with Vestacp to run multiple websites.
I have worked with WordPress websites on Ubuntu 18.10 VPS installed Vestacp. Choosing Vestacp to manage websites on VPS makes me more comfortable to control sites, add more domains, correct DNS and more. Besides, Vestacp is free, so you do not worry about the extra budget per month, although it also has a premium add-on to choose.
Also, when you set up VPS with Vestacp, you need some technique to correct some mistakes as well as fix requires of WordPress websites’ need.
Now we start to set up it with these steps:
• Deploy VPS with Ubuntu 18.10 x64
• Install Vestacp
• Update the new version of phpMyAdmin 4.9 and PHP7.2
• Install ImageMagick for WordPress
• Extra tips for WordPress.
We, now, check details of step by step guides so that you can be confident to run your own VPS server.
Step 1: Deploy VPS with Ubuntu 18.10
This step is easy to do with most of VPS companies. I use Vultr to give you an example. You log in Vultr account at https://my.vultr.com (if you do not have one, create one account), and choose the package to deploy a new VPS server which is suitable for you. Here, you can see a quick guide to deploying.
• Choose server: Cloud Compute
• Choose server location: Select one place which near your customers (if most of your customers are in England, it’s better to deploy a server in London.)
• Choose server size.
• At server type: Choose Ubuntu (version 18.10 x 64)
• Additional Features: Select: Enable IPv6 & Enable Private Networking. Please note: if you choose Enable Auto Backups & Enable DDOS Protection, the extra charge occurs.
• Type your server hostname & server label.
• Deploy it.
Tip: I recommend you choose a server size with a 1G ram at least. Also, please note that when you want to create a VPS server, you do not choose to install any app or software in advance, unless Ubuntu 18.10 x64. This installation helps insert Vestacp better.
Step 2: Install Vestacp
You log in the SSH of your VPS server. You can use puTTY to log in. For me, I like to log in directly from the dashboard of the server. It’s easier and faster, and it does not take my time to install puTTY.
To open SSH on the server dashboard:
+ Click your VPS Server
+ Click View Console (icon of the desktop on the right top corner)
When you open SSH, log in your root server. Usually, the username is root, so you type root.
Password is on the server dashboard (click on the icon of an eye to show password). You should type it carefully because password does not show on the ssh panel. I used to worry about this for the first time to type.
Oh! You log in your root of the VPS server. Continue to type this to process to install Vestacp. Type these codes:
$sudo apt-get update
$sudo apt-get upgrade
alternatively, you type one line like this:
$ sudo apt-get update && apt-get update
Wait a few seconds for the system updating the needed services.
Then, you download Vestacp with the command:
$sudo wget https://vestacp.com/pub/vst-install.sh
Now, you install Vestacp with this command:
$ bash vst-install.sh
Note: You do not need to type $.
You wait for installation procession of Vestacp about 10 to15 minutes.
During the time of installation, Vestacp asks you to answer some questions: with yes, no question, you often type “y” enter (this question is to confirm what to install on the server with Vestacp); and you also need to type an email address, and domain to install. You should type a subdomain example: vps.example.com, because this domain is for a default on Vestacp, I do not like to use it.
When Vestacp finishes the installation, you see the link and password to log in the Vesta Control Panel. You should write it down.
Login link: https://192.0.2.0:8083 (note: 192.0.2.0 is an IP example, change it as your server IP)
Password: 123456789 ( This is an example password to log in)
Note: for the first time, you log in the Vestacp, your browser can block this link, and tell: “Your connection is not private”. Continue to click on “Advance”, and then “Proceed to…”.
You can log in your Vesta Control Panel. You are free to add your domain of a website to run your business. However, WordPress needs some features and capabilities to run it without any mistakes. So, check the next steps to make your WordPress websites run smoothly on VPS Server Ubuntu 18.10 x 64.
Step 3: Update to PHP7.2 and phpMyAdmin 4.9
With the new phpMyAdmin 22.214.171.124 and PHP 7.2 verson that is good for WordPress websites to run smoothly and faster. For details of this step, you can see more at https://devanswers.co/manually-upgrade-phpmyadmin/ . Thank you very much, devanswers.co ! But, here I do few different ways with some changes to get it faster.
- Delete phpMyAdmin, run: $ sudo rm -rf /usr/share/phpmyadmin
- Create a new folder: $ sudo mkdir /usr/share/phpmyadmin/
- Come to phpMyAdmin folder: $ cd /usr/share/phpmyadmin/
- Download phpMyAdmin vesion: $ sudo wget https://files.phpmyadmin.net/phpMyAdmin/126.96.36.199/phpMyAdmin-188.8.131.52-english.tar.gz
(You should choose English.tar.gz, this file runs smoothly)
- Unzip: $ sudo tar xzf phpMyAdmin-184.108.40.206-english.tar.gz
- Correct ‘TEMP_DIR’ and ‘CONFIG_DIR’ in vendor_config.php with
$ sudo nano /usr/share/phpmyadmin/libraries/vendor_config.php
Save the file and exit.
- Romove the files:
$ sudo rm /usr/share/phpmyadmin/phpMyAdmin-220.127.116.11-english.tar.gz
$ sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-18.104.22.168-english
Finish this step!
Step 4: Insert ImageMagick
ImageMagick is a need for photos of WordPress websites running better. You should install this before install any demos or WordPress websites on your VPS server.
$ sudo apt-get install imagemagick php-imagick
$ php –m | grep imagick
(To get “|”, you press “Shift” button and type “\” button, usually “\” button near the enter button on the keyboard)
Step 5: Extra tips to import or install demos of WordPress websites better
You should set max_allowed_packet = 300M or higher when import file SQL. Also, other features in Vestacp at SERVER/Mysql (CONFIGURE) include:
You should also set up some features higher in Vestacp to upload big themes of WordPress or to install a big demo site. Increase these features:
You can see these features in PHP.INI of Vestacp at SERVER/apache2 (CONFIGURE). Remember when finishing changes, you should select the “Restart” button before clicking to save.
I recommend you to reduce these features to suitable levels to keep your VPS server not overuse.
Can you install Vestapc on your VPS Ubuntu 18.10? Good luck if you do it well. You want to help, please leave a comment below or send me an email! Thank you!