0

I am using Ubuntu 14.04 and just tried to update from PHP 5.6 to 7 - everything worked fine and when I type in

php -v

I get this

PHP 7.0.5-3+donate.sury.org~trusty+1 (cli) ( NTS )
Copyright (c) 1997-2016 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies

I restarted my apache with service apache2 restart and it did too. But I can´t access the php version. Maybe I was using the mod_php before instead of the cli/cgi but I am not able to find something about change php version on apache anywhere on google etc.

My PHP7 lays in /etc/php/7.0 with

drwxr-xr-x 3 root root 4096 Apr 27 19:56 cli
drwxr-xr-x 4 root root 4096 Apr 27 19:56 fpm
drwxr-xr-x 2 root root 4096 Apr 27 19:56 mods-available

My info.php with phpinfo(); is not getting executed. Any ideas?

8
  • Check if he module is enable in apache in /etc/apache2/mods-enabled
    – Dom
    Apr 27, 2016 at 18:47
  • @Dom which module?
    – Isengo
    Apr 27, 2016 at 18:53
  • you're missing mod_php, did you compile php or did you use package?
    – alexus
    Apr 27, 2016 at 19:09
  • @alexus I used this digitalocean.com/community/tutorials/… Tutorial, so I guess packages
    – Isengo
    Apr 27, 2016 at 19:13
  • @isengo tutorial covers nginx and not apache2...
    – alexus
    Apr 27, 2016 at 19:15

0

You must log in to answer this question.

Browse other questions tagged .