Do I have php 70 or 55

Hi - I had installed php 7 and everything looked great. Now - a few weeks later, I have this:
http://livetstre.net/phpinfo.php
– the phpinfo file telling me I am running on php 5.5.

I am running a mac server, and if I go to terminal and run php -v , I get:
PHP 7.0.4 (cli) (built: Mar 14 2016 08:14:23) ( NTS )
Copyright © 1997-2016 The PHP Group

Why this mismatch?

I my piwik installation, it also tells me I am running 5.5.

This is from my httpd.conf file:

[php]#LoadModule php5_module libexec/apache2/libphp5.so
#ENABLE PHP 7 MODULE
LoadModule php7_module /usr/local/opt/php70/libexec/apache2/libphp7.so

<FilesMatch .php$>
SetHandler application/x-httpd-php

[/php]

Anyone who can explain? I have a feeling I am unly using 5.5. I noticed increased speed after updating to 7, but I think I can notice the differance (at least I am able to imagine it :slight_smile: )

Did you resolve this yet? It says your loaded config file is from /etc/php.ini .
It clearly states that your loaded modules contain php5.5 not php7.0.

So, NO you do not have the correct installation of PHP7… I would try to reinstall it.

But, first, check if the address in httpd.conf file ( /usr/local/opt/php70/libexec/apache2/ ) is valid and make sure thelibphp7.so file is there.

Also, did you restart your apache system after installing php7?

Hi - it turns out the osX server has its own php installation. It does not use the server installation. So it seems I simply have to wait for Apple to update the server app with a new php version. I am afraid that will take some time…

Have you tried developing on a virtual environment? It will let you develop on the same environment that you host your code on in production, and if you’re several people working on the code base you know you don’t spend time battling irrelevant issues like supporting an OS or lib install you don’t really use anyway (windows, osx, etc)

I wrote a short tutorial to get started here:
http://www.phphelp.com/forum/the-occasional-tutorial/modern-web-development-let’s-develop-something-together/

Sponsor our Newsletter | Privacy Policy | Terms of Service