PHP 7.1 installation problem

A

Anonymous

Guest
I upgrade PHP from version 7.0.9 to 7.1 in Window Server 2016. I have got the follow error.

https://s27.postimg.org/b8knorcir/error2.png
 
Are you sure you have upgraded correctly? Ondřej Surý has created this PPA which has the latest versions of PHP in it. Add it to your system, and update to get a list of all the software we can install.

Code:
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update

install PHP 7.1

Code:
$ service apache2 stop
$ sudo apt-get install php7.1 php7.1-common

Remove PHP 7.0

$ sudo apt-get purge php7.0 php7.0-common

Tell Apache to use PHP7.1 now PHP 7.0 is not being used.

Code:
$ a2enmod php7.1
$ service apache2 restart

In case if you are using managed PHP web hosting platform to upgrade your server. You can find the upgrade option in their panel. Most of the platforms, like cPanel and Plesk makes upgrading easy by providing one click option.
 
Post the error instead of a broken image link. In any case, there are issues with Php 7.1x. You should run at least 7.2
 
Back
Top