Hi, I have a server with VestaCp installed correctly with php5.5 by default. Now want update the version of php to version 5.6 or 7.0 Fisrt step add the repository
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Great a see php 5.5, php 5.6 and php 7.0 Second step, install php 5.6
sudo apt-get install php5.6 php5.6-common
All great, in console type php -v

Now in vestacp creating a info.php and show the php5.5

In the path /usr/bin

Where is the error?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
After the installation of PHP 5.6 did you restart apache with service apache2 restart so the change would take effect?
It appears that there are a lot of threads on the VestaCP forums on upgading PHP and while for some it has been a straightforward process (most often for those running fresh installations) for others there were problems. It also appears that work is underway but reported as 0% done to get VestaCP ready for Ubuntu 16.04 so upgrading is not yet an option.
After more test, I tried with this:
a2dismod php5
And
a2enmod php5.6
The result is:

Remember change template for example edit one website -> select template hosting -> save and select the same website -> template default and save
The step is correct for process?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.