Installing Vesta hosting control panel on CentOS 6, 64bit OpenVZ VPS:


(The Vesta Control panel can be installed on a RHEL, CentOS, Debian and Ubuntu server. They recommend at least 1024MB RAM. if too low RAM, installation may fail.)

I started this on VPS with 512MB RAM burstable and it failed.

I wanted to see RAM and HDD requirements of whole Vesta server package, so i did df -h and free -m commands before installation:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 9.8G 623M 9.2G 7% /
none 256M 4.0K 256M 1% /dev
none 256M 0 256M 0% /dev/shm

total used free shared buffers cached
Mem: 512 27 484 0 0 15
-/+ buffers/cache: 11 500
Swap: 256 0 256
RAM used: 27 Mb
HDD used: 623 Mb
inodes: 22592

And then begin Vesta installation per instructions at http://vestacp.com/#install

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

Then i got message:

Following packages are already installed:
httpd bind-9
so i did: yum erase httpd bind

but it still complaining httpd is there, so i did: yum list httpd*

and it outputted:
Installed Packages
httpd-tools.x86_64 2.2.15-26.el6.centos installed
Available Packages
httpd.x86_64 2.2.15-39.el6.centos base
httpd-devel.i686 2.2.15-39.el6.centos base
httpd-devel.x86_64 2.2.15-39.el6.centos base
httpd-manual.noarch 2.2.15-39.el6.centos base
httpd-tools.x86_64 2.2.15-39.el6.centos base
so i uninstalled httpd-tools: yum erase httpd-tools

and re-run install script: bash vst-install.sh

good:
_| _| _|_|_|_| _|_|_| _|_|_|_|_| _|_|
_| _| _| _| _| _| _|
_| _| _|_|_| _|_| _| _|_|_|_|
_| _| _| _| _| _| _|
_| _|_|_|_| _|_|_| _| _| _|


Vesta Control Panel

Following software will be installed on your system:
- Nginx frontend web server
- Apache application web server
- Bind DNS server
- Exim mail server
- Dovecot IMAP and POP3 server
- MySQL database server
- Vsftpd FTP server


* SELinux and Iptables will be disabled

Do you want to proceed? [y/n]):
yum had 150 packages to install/upgrade and 296 to be updated, size like 118Mb

After complete i got errors:

Initializing MySQL database: Installing MySQL system tables...
150328 4:44:33 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
/usr/bin/mysql_secure_installation

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

MySQL Daemon failed to start.
Starting mysqld: [FAILED]
Error: mysqld start failed
so in /etc/my.cnf i replaced key_buffer by key_buffer_size

but mysql still failing to start: service mysqld start

tail /var/log/mysqld.log shows:
150328 5:01:43 InnoDB: Completed initialization of buffer pool
InnoDB: Error: pthread_create returned 11
150328 05:01:43 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
free -m
shows that VPS is using 431Mb Of memory, i have VPS with 256MB and 512Mb burstable, so im low on memory. After upgrading VPS to 1024MB RAM burstable, i see free -m is showing VPS is using 249Mb of RAM (its still quite alot), but command service mysqld start now works to start mysql. After start i see memory used is 575Mb !

so i run: /usr/bin/mysql_secure_installation
(as recommended above to setup mysql password)

after installation of Vesta webserver:
RAM used: 579 Mb
HDD used: 1.15 GB
inodes: 36223

so it is a huge webserver when comparing to Webmin able to run on 128MB ram VPS, Kloxo able to run on 256Mb RAM VPS and zPanel 256MB RAM VPS too.

So Vesta installation failed, what i did is uninstalled it:
service vesta stop
yum remove vesta*
rm -f /etc/yum.repos.d/vesta.repo

and then installed again:
bash /root/vst-install.sh -f

it finished OK

Vesta control panel after successfull installation, should be available at:
httpS://YOUSERVERIP:8083

To reset Vesta admin password, run: /usr/local/vesta/bin/v-change-user-password admin newpasswordhere

Vesta logs should be located in /usr/local/vesta/log/

As per Vesta documentation on system with less than 1GB RAM, PHP fcgi handler is not installed. http://vestacp.com/docs/#how-to-install-vesta

Vesta CP has its WHMCS module for automated account provisioning!:
http://vestacp.com/docs/#how-to-install-whmcs-module

In Vesta is probably not an file manager, to upload files, use FTP, login with your Vesta username and password.