[Phpwm] Different builds of php

David Goodwin david at codepoets.co.uk
Tue Mar 19 17:57:23 UTC 2013


On Debian you can install a libapache2-mod-php5 version which is different from the command line (php5-cli). 

I'd suspect that perhaps you've installed one of them (either the cli or apache module) by hand, and the other 'automatically'

Alternatively, perhaps you've enabled an add-on repo for CentOS and cherry picked some packages out of it - but not all? 

On CentOS - the PHP package contains the Apache module, but a different package contains the cli instance --

[root at 159 ~]# rpm -ql php
/etc/httpd/conf.d/php.conf
/usr/lib64/httpd/modules/libphp5-zts.so
/usr/lib64/httpd/modules/libphp5.so
/var/lib/php/session
/var/www/icons/php.gif


[root at 159 ~]# rpm -ql php-cli
/usr/bin/phar
/usr/bin/phar.phar
/usr/bin/php
/usr/bin/php-cgi
/usr/bin/phpize
/usr/share/doc/php-cli-5.3.19
/usr/share/doc/php-cli-5.3.19/README
/usr/share/doc/php-cli-5.3.19/README.FastCGI
/usr/share/man/man1/php.1.gz
/usr/share/man/man1/phpize.1.gz


rpm -qa | grep php

Would be a good starting point


David.


On 19 Mar 2013, at 17:06, Mike Tipping <mike at etuna.co.uk> wrote:

> On a single server, when I run 'php -I' in terminal I get a different configuration to running phpinfo() within the browser. The terminal version has extensions I need enabled, the browser version doesn't. They have different build dates too - the browser version is about 4 minutes later than the terminal version.
> 
> Both claim to point at the same php.ini
> 
> Does anyone have any idea what is going on here.
> 
> Cheers
> 
> Mike
> _______________________________________________
> Phpwm mailing list
> Website : http://www.phpwm.org
> Twitter : http://www.twitter.com/phpwm
> Facebook: http://www.facebook.com/group.php?gid=2361609907
> 
> Post to list: Phpwm at mailman.lug.org.uk
> Archive etc : https://mailman.lug.org.uk/mailman/listinfo/phpwm




More information about the Phpwm mailing list