We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Install PHP 7.1 on a Ubuntu Xenial with VestaCP
Install PHP 7.1 on a Ubuntu Xenial with VestaCP
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
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
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
You should have been able to get this straight with some search. Pretty common thing to do.
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
IMPORTANT
You may also need these pkgs updated to 7.1
Code: Select all
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
Code: Select all
apt-cache pkgnames | grep php7.1
Code: Select all
sudo apt-get remove php7.0
Code: Select all
sudo apt-get install php7.1
sudo apt install libapache2-mod-php7.1
Code: Select all
a2dismod php7.0 && a2enmod php7.1
systemctl restart apache2
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
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?
-
- Support team
- Posts: 1096
- Joined: Sat Sep 06, 2014 9:58 pm
- Contact:
- Os: Debian 8x
- Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
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.
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
I have just remove php7.0 like you say and do a sudo apt-get purge php7.0-commonmehargags wrote:You should have been able to get this straight with some search. Pretty common thing to do.
Code: Select all
sudo apt-get remove php7.0
It seems working well.
Thanks again