01-02-2019, 12:59 PM
Here are the commands you can follow to get PHP7 installed.
Now you've to purge all the operations and cache proceeded by PHP5 from your machine by following command :-
OR
Now begin installation of PHP7 with the following command. This includes all required and essential packages for PHP7.
If that doesn't work, use this.
If the error continues, use the following command in order to get the latest PHP modules loaded in your source list.
.
Thank you,
Manal Shaikh.
Code: (Select All)
sudo apt-get install python-software-properties software-properties-common
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get updateNow you've to purge all the operations and cache proceeded by PHP5 from your machine by following command :-
Code: (Select All)
sudo apt-get remove php5-common -yCode: (Select All)
sudo apt-get purge php5-common -yNow begin installation of PHP7 with the following command. This includes all required and essential packages for PHP7.
Code: (Select All)
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -yIf that doesn't work, use this.
Code: (Select All)
sudo apt-get install php7.0If the error continues, use the following command in order to get the latest PHP modules loaded in your source list.
Code: (Select All)
sudo apt-add-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.0Thank you,
Manal Shaikh.
