Page 1 of 1
Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Posted: Sun Nov 05, 2017 5:27 am
by floown
Hello,
I have installed a lamp with VestaCP on a Ubuntu Xenial. Now, I should update the php version (PHP 7.0.22-0ubuntu0.16.04.1) to the last PHP 7.1 because Drupal 8.4 need it.
Is there a tutorial to do this properly with VestaCP installed for Xenial?
Thanks for your help
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Posted: Sun Nov 05, 2017 5:57 pm
by mehargags
You should have been able to get this straight with some search. Pretty common thing to do.
Code: Select all
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
Then you can list all of the available PHP 7.1-related packages for review:
if you don't want PHP 7.0 at all, you can remove it
Code: Select all
sudo apt-get install php7.1
sudo apt install libapache2-mod-php7.1
IMPORTANT
Code: Select all
a2dismod php7.0 && a2enmod php7.1
systemctl restart apache2
You may also need these pkgs updated to 7.1
Code: Select all
sudo apt install -y php7.1-xml php7.1-zip php7.1-mysql php7.1-curl php7.1-mbstring php7.1-json php7.1-gd php7.1-intl php7.1-mcrypt php7.1-xsl php7.1-soap php7.1-common php7.1-readline php7.1-cli php7.1-opcache php7.1-iconv php7.1-sqlite3
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Posted: Mon Nov 06, 2017 7:57 am
by floown
Oh ok, so I can take any tutorial available on the internet to migrate a Xenial installation to php 7.1 without worrying about VestaCP. VestaCP does not require reconfiguration, is that it?
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Posted: Mon Nov 06, 2017 9:49 am
by mehargags
Yes... Kind of!!
VestaCP mostly alters/manipulates system configs though, but for Nginx/Apache it "creates" split configs in a special way. however, they are in the same standard format.
Just do your PHP7.1 install, post any problems that you may face.
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Posted: Wed Dec 13, 2017 9:47 am
by floown
mehargags wrote:You should have been able to get this straight with some search. Pretty common thing to do.
I have just remove php7.0 like you say and do a sudo apt-get purge php7.0-common
It seems working well.
Thanks again