VestaCP Upgrade PHP and MYSQL

If you need to upgrade php and mysql on your vestaCP server Linux CentOS, you can follow this solution:

PHP –
rpm -Uvh http://mirror.webtatic.com/yum/el6/latest.rpm
yum install yum-plugin-replace
yum replace php-common –replace-with=php56w-common

MySQL –
rpm -Uvh http://dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
(edit if you have to ) nano /etc/yum.repos.d/mysql-community.repo
yum update mysql-server
service mysqld restart
chkconfig mysqld on
mysql_upgrade

This will update your php to php 5.6.X
And MySQL to MySQL 5.6.X

In my case :
PHP 5.6.16 (cli)
Server version: 5.6.28 MySQL Community Server (GPL)