The easier way is to follow this tutorial for Ubi: https://www.digitalocean.com/community/t...untu-14-04 ; This tutorial for Cent: https://www.digitalocean.com/community/t...n-centos-7
With Ubi you need to use the language filters so use this command (in Ubi tut):
Then don't forget to run your regular commands:
where the first line is the version of php you want to disable, and the second you want to enable. Follow all that up with:
followed up with some:
and everything should be kosher. Takes me about 20 Minutes to deploy a whole server with sentora and everything.
WARNING! : Please remember to BACK UP your data in case that this fails. I am not responsible for lost data or people who follow my words blindly! Do anything I tell you with a grain of salt and do your research prior to doing ANYTHING!
With Ubi you need to use the language filters so use this command (in Ubi tut):
Code:
sudo apt-get install -y language-pack-en-base
sudo LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php
Then don't forget to run your regular commands:
Code:
sudo a2dismod phpx.x
sudo a2enmod phpx.x
sudo service apache2 restart
where the first line is the version of php you want to disable, and the second you want to enable. Follow all that up with:
Code:
sudo apt-get install php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-curl php7.0-gd php7.0-bz2
followed up with some:
Code:
sudo service apache2 restart
and everything should be kosher. Takes me about 20 Minutes to deploy a whole server with sentora and everything.
WARNING! : Please remember to BACK UP your data in case that this fails. I am not responsible for lost data or people who follow my words blindly! Do anything I tell you with a grain of salt and do your research prior to doing ANYTHING!