I upgrade my PHP in LAMP Ubuntu 14 server to PHP 7 following the tutorial - https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-php-7-on-ubuntu-14-04
However after testing the application for 2 days, I wanted to downgrade it back to the original php version because of many unexpected errors in composer packages.
Image : http://i.imgur.com/MS2Q2Nz.png
Would be helpful if anyone can share the details.
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!
This work fine for me
From php5.6 to php7.0 : Apache: sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart CLI: update-alternatives --set php /usr/bin/php7.0 from php7.0 to php5.6 : Apache: sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart CLI: sudo update-alternatives --set php /usr/bin/php5.6
There’s any complication if i change the php version? my databases will remain?
From php5.6 to php7.0: Apache: sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart CLI: sudo update-alternatives --set php /usr/bin/php7.0 From php7.0 to php5.6: Apache: sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart CLI: sudo update-alternatives --set php /usr/bin/php5.6
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.