4

After I installed php 7.x phpinfo is still showing older php 5.x

should i purge the older version? or what?

thanks

Francesco
  • 149
  • 2
  • 7

2 Answers2

4

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):

Disable PHP5 module on Apache:

sudo a2dismod php5

Now enable PHP7:

sudo a2enmod php7.1

To reflect changes Apache restart is required:

sudo systemctl restart apache2
0

ok I found out that a module was enabled and causing conflict

so i deleted the php5filter.load

Francesco
  • 149
  • 2
  • 7
  • You deleted this module causing the wrong view of the version number and solved the problem with that, then? If so, please you should mark your answer as solved, no? – Pille Nov 10 '17 at 13:47