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?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $100 of credit to try our products over 60 days!