5
After updating PHP on my Ubuntu server my phpinfo()
continues showing the previous version 5.5
even when executed php -v
(returns to version 7.0).
I’ve tried Re-start on apache and on php7.0-fpm
and it didn’t work.
5
After updating PHP on my Ubuntu server my phpinfo()
continues showing the previous version 5.5
even when executed php -v
(returns to version 7.0).
I’ve tried Re-start on apache and on php7.0-fpm
and it didn’t work.
5
First of all, it has to be said that after the PPA update, PHP is being installed as multiple versions. In my case, I have installed PHP 5.6 and PHP 7.0.
You probably installed the new PHP, but did not activate the PHP 7.0
in the Apache.
You can try it like this:
sudo a2dismod php5.6
sudo a2enmod php7.0
Note that it is necessary to rotate a2dismod
to disable disable the module with the previous version, and a2enmod
to enable the version 7
.
After making these changes, restart Apache.
Browser other questions tagged php ubuntu
You are not signed in. Login or sign up in order to post.
See help: http://askubuntu.com/questions/760907/upgrade-to-16-04-php7-not-working-in-browser
– Miguel
As far as I know, PHP only works correctly on Ubuntu 16.x. This is your version?
– William Aparecido Brandino
@Williamaparecidobrandino 14.04
– RFL
@Williamaparecidobrandino no, no, in Ubuntu 14 works perfectly.
– Wallace Maxters