var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
HELP!! PHP version is 5.2, yet thru apache its 5.1.6 - all sorts of problems!
Hi all - I'm pulling my hair out here as I just have no clue as to what has gone on.
FreeBSD box - I just upgraded php with
portupgrade -rR php5
and all hell has broken loose.
No scripts work anymore that use php5's extensions.
But it's really weird -
php -v shows:
php -m shows
PHP 5.2.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 21 2006 12:22:41)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
with Zend Extension Manager v1.0.10, Copyright (c) 2003-2006, by Zend Technologies
Yet whenever I pull up phpinfo() from a script it shows php as version 5.1.6 and the PHP Extension as 20050922
Zend Extension Manager
yet in /usr/local/lib/php/20050922 the only remaining extension is pdo.so, all teh others are in /usr/local/lib/php/20060613
on an apachectl restart the php_error_log shows:
for every php extension that resides in 20060613:
yet for the single extension living in 20050922:
[21-Nov-2006 12:47:49] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20050922/imap.so' - Cannot open "/usr/local/lib/php/20050922/imap.so" in Unknown on line 0
[21-Nov-2006 12:51:12] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/pdo.so' - Cannot open "/usr/local/lib/php/20060613/pdo.so" in Unknown on line 0
I've reinstalled php5, php5-extensions, apache22 - and still no go.
Please, please, please help me!
This HAS to be an apache issue:
called through a webbrowser gives:
Fatal error: Call to undefined function: session_start() in /usr/home/www/test.php on line 2
yet called through the command line:
the apache module, libphp5.so in my apache installation has a modification date of
Sep 3 17:16
which corresponds to the 5.1.6 build date
Last edited by input; 11-21-2006 at 08:04 AM.
That last edit I added about libphp5 got me thinking that the php5 reinstall didn't work to include apache22
so I redid the install with all the rights args and that updated libphp5.so to nov21.
An apachectl restart took apache down with the following error:
/libexec/ld-elf.so.1: /usr/local/lib/php/20050922/pdo.so: Undefined symbol "zend_unregister_ini_entries"
AAAAaaaarrrgh! This damned pdo.so - the only php extension that's left in the old 20050922 extension repository!!!
What the hell is it and can I get rid of it???
OK, I reinstalled all my php extensions (which for some reason added lots new extensions), which updated finally pdo.so and all looks fine