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 update
Now 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 -y
Code: (Select All)
sudo apt-get purge php5-common -y
Now 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 -y
If that doesn't work, use this.
Code: (Select All)
sudo apt-get install php7.0
If 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.0
Thank you,
Manal Shaikh.
Premium Web Hosting | ShadowCrypt | Manal Shaikh Official Website
If you find my post/thread useful, you're supposed to +rep me.
If you find my post/thread useful, you're supposed to +rep me.