Once you’ve received VPS or dedicated server, you need to configure and manage it.
Today on market there is a dozens of control web panels for easy server administration. They writen on different languages, with different system requirements and funcionality. Some of them commercial and you need to purchase license to use it, and some of them are free.
Today we’ll review free, super fast and user-friendly web server control panel – VestaCP 0.9.8.
Install Vesta Control Panel on Debian 8.9
First, let’s visit official VestaCP install page and check for current version, supported operation systems and minimal system requirements.
Now, connect to your server via SSH under the root user.
Download VestaCP installation script
root@s1:~# wget http://vestacp.com/pub/vst-install.sh --2017-11-19 13:28:28-- http://vestacp.com/pub/vst-install.sh Resolving vestacp.com (vestacp.com)... 126.96.36.199 Connecting to vestacp.com (vestacp.com)|188.8.131.52|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1721 (1.7K) [text/plain] Saving to: ‘vst-install.sh’ vst-install.sh 100%[===================>] 1.68K --.-KB/s in 0s 2017-11-19 13:28:29 (159 MB/s) - ‘vst-install.sh’ saved [1721/1721]
Let’s run Vesta Control Panel installation script
root@s1:~# bash vst-install.sh Error: group admin exists Please remove admin user account before proceeding. If you want to do it automatically run installer with -f option: Example: bash vst-install.sh --force
We’ve got an error: group admin exists. That’s mean on our server group “admin” is already created. It depends on operation system images on some hosting providers.
Remove admin group by typing next command:
root@s1:~# delgroup admin Removing group `admin' ... Done.
Run installation script again: bash vst-install.sh
!!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! Following packages are already installed: exim4 It is highly recommended to remove them before proceeding. If you want to force installation run this script with -f option: Example: bash vst-install-debian.sh --force !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! !!! Error: Control Panel should be installed on clean server.
Oh no, again error: Control Panel should be installed on clean server. Most operation systems come with preinstalled software, like EXIM in our example. Exim is mail transfer agent and it’s responsible for receiving, delivering and routing an email.
To completely remove mail agent and it’s configuration files (it’s required to continue web panel installation) run next command with –purge attribute:
root@s1:~# apt-get --purge remove exim4 exim4-base exim4-config exim4-daemon-light Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: exim4* exim4-base* exim4-config* exim4-daemon-light* 0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded. After this operation, 4,053 kB disk space will be freed. Do you want to continue? [Y/n]
After running command apt-get –purge remove exim4 exim4-base exim4-config exim4-daemon-light remember to to press Enter, to confirm packages removal.
That’s it. Now we can continue VestaCP installation process.
root@s1:~# bash vst-install.sh --2017-11-19 14:26:25-- http://vestacp.com/pub/vst-install-debian.sh Resolving vestacp.com (vestacp.com)... 184.108.40.206 Connecting to vestacp.com (vestacp.com)|220.127.116.11|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 46673 (46K) [text/plain] Saving to: ‘vst-install-debian.sh’ vst-install-debian. 100%[=====================>] 45.58K 283KB/s in 0.2s 2017-11-19 14:26:25 (283 KB/s) - ‘vst-install-debian.sh’ saved [46673/46673] _| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_| _| _| _| _| _| _| _| _| _| _|_|_| _|_| _| _|_|_|_| _| _| _| _| _| _| _| _| _|_|_|_| _|_|_| _| _| _| Vesta Control Panel Following software will be installed on your system: - Nginx Web Server - Apache Web Server (as backend) - Bind DNS Server - Exim mail server - Dovecot POP3/IMAP Server - MySQL Database Server - Vsftpd FTP Server - Iptables Firewall + Fail2Ban Would you like to continue [y/n]:
Type “y” to confirm and wait. It should take no longer then 15 minutes, you’ll be asked for email address and proper FQDN (your server’s domain name). You can enter any domain name, or press enter if it already has been detected by installation script.
Would you like to continue [y/n]: y Please enter admin email address: firstname.lastname@example.org Please enter FQDN hostname [s1.dock.co.nz]: Installation backup directory: /root/vst_install_backups/1511101635 Installation will take about 15 minutes ...
At the end of installation process you’ll see congratulatory message and your access details:
Congratulations, you have just successfully installed Vesta Control Panel https://s1.dock.co.nz:8083 username: admin password: LksUbui8OU
Now open your browser, go to provided link with port 8083 and login with username and password. In some browsers, instead of control panel login page, you could see warning notification “Your connection is not secure“:
It happens because web control panel (web server) use self signed SSL certificate to make connection with server more secure. However this certificate is self signed, and it’s not trusted by web browser as it potential risk. But we know about it and let’s add this website to exception list.
Click on the button Add Exception…
Confirm Security Exception by clicking on the relevant button.
Open control panel address again and refresh your browser if needed.