Upgrade php version. Module php5.6 does not exist
I needed to perform the upgrade php version from 5.3 to 5.6 (ubuntu 12.04).
I used the following commands:
sudo add-apt-repository ppa:ondrej/php sudo apt-get update sudo apt-get purge php5-common sudo apt-get install libapache2-mod-php5.6 sudo a2dismod php5 sudo a2enmod php5.6 # after this command I get 'Module php5.6 does not exist' sudo service apache2 restart
if check through the terminal “php –version” I see a new version:
PHP 5.6.30-1+deb.sury.org~precise+1 (cli) Copyright (c) 1997-2016 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
Through http request php does not work.
If I understand correctly php already installed.
But the apache can not determine it.
How can I fix this?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×