VIRTUALIZOR 2.7.9 TO 2.8.0 MANUAL UPDATE
Last Updated on Thursday, 09 June 2016 05:48 Written by BiRU Saturday, 04 June 2016 00:32
Firstly, every php-file in Virtualizor distribution is encrypted with IonCube. Secondly, initial database file (virtualizor.sql) doesn’t contains full schema. I’ve concluded that updating process is pretty hidden, but we can do this
1) ssh to host-node with your credentials
$ ssh [email protected]
2) check running services
$ ps aux | grep emps
3) switch to sudo session
$ sudo su
4) stop Virtualizor services
$ service virtualizor stop
5) backup your data
$ cd ~; mkdir backup
$ cp /usr/local/virtualizor/universal.php ~/backup # virtualizor config
$ cp /usr/local/virtualizor/license.php ~/backup # license
$ cp -r /usr/local/virtualizor/conf/ ~/backup # certs and system config
$ cp -r /usr/local/virtualizor/ ~/backup # whole folder in case of trouble
6) open universal.php and try to find lines (write somewhere)
$globals['dbhost'] # hostname for mysql server (in my case this is localhost)
$globals['db'] # database name inside mysql server (in my case this is virtualizor)
$globals['dbuser'] # user name to connect to mysql server
$globals['dbpass'] # password to connect to mysql server
this is the mysql-database settings that will help us to backup database
7) backup database (you have to enter $globals[‘dbpass’] value from universal.php in prompt)
$ /usr/local/emps/bin/mysqlctl start
$ /usr/local/emps/bin/mysqldump -u root -p virtualizor > ~/backup/backup.sql
$ /usr/local/emps/bin/mysqlctl stop
root – is $globals[‘dbuser’] value
virtualizor – is $globals[‘db’] value
8) download Virtualizor latest distribution
$ wget http://files.virtualizor.com/2.8.0.zip
9) purge old Virtualizor instance
$ rm -rf /usr/local/virtualizor/
10) install new instance
$ unzip 2.8.0.zip -d /usr/local/virtualizor
11) restore settings
$ cp ~/backup/universal.php /usr/local/virtualizor/ # virtualizor config
$ cp ~/backup/license.php /usr/local/virtualizor/ # license
$ cp -r ~/backup/conf/ /usr/local/virtualizor/ # certs and system config
12) fix permissions
$ chmod +x /usr/local/virtualizor/conf/emps/emps
13) import hidden schema
$ /usr/local/emps/bin/mysqlctl start
$ /usr/local/emps/bin/mysql -h localhost -u root -p virtualizor < hidden_schema_280.sql
$ /usr/local/emps/bin/mysqlctl stop
root – is $globals[‘dbuser’] value
virtualizor – is $globals[‘db’] value
14) start services and visit web-panel
$ service virtualizor start
15) if everything okay you can remove old instance backup
$ rm -rf ~/backup/virtualizor/
I’ve used this steps to successful upgrade to 2.8.0
You can grab hidden_schema_280.sql here:
http://pastebin.com/ZsmykD76
----------