You can do the following:

sudo apt-get install python-software-properties
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
sudo apt-get update

Optionally purge PHP 5:

sudo apt-get remove php5-common -y

Or directly purge it including configuration files:

sudo apt-get purge php5-common -y

And finally install PHP 7:

sudo apt-get install php7.0 php7.0-fpm php7.0-mysql -y

Optionally clean up unneeded packages afterwards:

sudo apt-get --purge autoremove -y

Alternatively, you can install PHP 7.0 from sources using this script script or following instruction on this blog.

相关文章:

  • 2021-04-26
  • 2022-01-21
  • 2021-12-21
  • 2021-09-26
  • 2021-12-24
  • 2022-02-08
  • 2021-06-21
猜你喜欢
  • 2021-08-06
  • 2021-08-06
  • 2021-07-19
  • 2021-06-18
  • 2021-06-07
  • 2021-06-28
  • 2021-12-11
相关资源
相似解决方案