Skip to content

Instantly share code, notes, and snippets.

View johnny-aroza's full-sized avatar
🚴‍♂️
Hakuna Mata

johnny johnny-aroza

🚴‍♂️
Hakuna Mata
View GitHub Profile
@johnny-aroza
johnny-aroza / gist:d7c7f13a0273bd01090a17505b4ba01d
Last active August 1, 2018 07:53
upgrade or downgrade php version
$ sudo a2dismod php5.6
$ sudo a2enmod php7.1
$ sudo service apache2 restart
if php 7.1 is not instaled first insatall and if this still gives error use the below command and again run from top
$ update-alternatives --set php /usr/bin/php7.1
-----------------------------------------------------------
If you have this problem while upgrading from PHP5 to PHP7 on Ubuntu 14.04 with Apache, here's what helped me (credit goes here):