This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ 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): |
NewerOlder