Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion Debian/Ubuntu
  • Search

Install PHP 7.1 on a Ubuntu Xenial with VestaCP

Debian/Ubuntu related topics
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Install PHP 7.1 on a Ubuntu Xenial with VestaCP
  • Quote

Post by floown » Sun Nov 05, 2017 5:27 am

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
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
  • Quote

Post by mehargags » Sun Nov 05, 2017 5:57 pm

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:

Code: Select all

apt-cache pkgnames | grep php7.1
if you don't want PHP 7.0 at all, you can remove it

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
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
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
  • Quote

Post by floown » Mon Nov 06, 2017 7:57 am

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?
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
  • Quote

Post by mehargags » Mon Nov 06, 2017 9:49 am

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.
Top

floown
Posts: 87
Joined: Wed Nov 19, 2014 1:51 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Install PHP 7.1 on a Ubuntu Xenial with VestaCP
  • Quote

Post by floown » Wed Dec 13, 2017 9:47 am

mehargags 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
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
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Debian/Ubuntu”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password