php modules not matching

General support questions including new installations
Post Reply
Tony
Posts: 16
Joined: 2005/05/24 20:44:11
Contact:

php modules not matching

Post by Tony » 2006/04/29 07:24:57

Im really hoping someone can help me.... dont want to sound desperate - but I am :-(

Someone compiled php 5.1.2 from source for me - but they have disapeard half way through....

Can anyone tell me how to get these modules to match? ie: how to recompile them.

If someone can guide me on one of them I'm sure I can do the rest... just need a little hand holding.

Any help is appreciated.

Thanks.

[quote]
$ php -v
PHP Warning: PHP Startup: ÇÂ*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: lüÂ*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/dom.so' - /usr/lib64/php/modules/dom.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/gd.so' - /usr/lib64/php/modules/gd.so: undefined symbol: empty_string in Unknown on line 0
 Ã*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/ldap.so' - /usr/lib64/php/modules/ldap.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mbstring.so' - /usr/lib64/php/modules/mbstring.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysql.so' - /usr/lib64/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Ã*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: SÃ*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/odbc.so' - /usr/lib64/php/modules/odbc.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pgsql.so' - /usr/lib64/php/modules/pgsql.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: ½®Â*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/soap.so' - /usr/lib64/php/modules/soap.so: undefined symbol: empty_string in Unknown on line 0
PHP Warning: PHP Startup: oZÃ*: Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: : Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=0
PHP compiled with module API=20050922, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.1.2 (cli) (built: Apr 28 2006 22:27:19)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
with Zend Extension Manager v1.0.9, Copyright (c) 2003-2006, by Zend Technologies
with Zend Optimizer v2.6.2, Copyright (c) 1998-2006, by Zend Technologies
[/quote]

Tony
Posts: 16
Joined: 2005/05/24 20:44:11
Contact:

Re: php modules not matching

Post by Tony » 2006/04/29 19:04:36

I eventually got this sorted.

mrwooly
Posts: 3
Joined: 2009/01/22 13:26:30

Re: php modules not matching

Post by mrwooly » 2009/01/22 13:36:06

Oh, google brought me here when I googled this error message, but no-one seems to have solved it yet?

From the command line if I run:

[color=006600][font=Courier][sean@seans dilate.choonz.com]$ /usr/bin/php ./index.real.php[/font][/color]
[color=006600][font=Courier]PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php5/mysql.so' - /usr/lib64/php5/mysql.so: undefined symbol: empty_string in Unknown on line 0[/font][/color]
[color=006600][font=Courier]PHP Fatal error: Call to undefined function mysql_connect() in /home/httpd/dilate.choonz.com/loudblog/inc/database/drivers/adodb-mysql.inc.php on line 357[/font][/color]

So PHP is working fine on non-DB pages, but it is not working for pages that require mysql_commands

Further to this, within /etc/php.ini this line exists:
[color=006600][font=Courier]extension=mysql.so[/font][/color]

and the file '/usr/lib64/php5/mysql.so' exists too
[color=006600][font=Courier][sean@seans etc]$ ls -l /usr/lib64/php5/mysql.so[/font][/color]
[color=006600][font=Courier]-rwxr-xr-x 1 root root 50368 Jul 16 2008 /usr/lib64/php5/mysql.so[/font][/color]

If the old posters recall how they solved it, that'd be ace! or if anyone else reading this has encountered it, that would be useful too.

background, i'm just going through the process of upgrading php from v4 to v5 when i encountered this problem.

all the best,

sean/mrwooly

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: php modules not matching

Post by gerald_clark » 2009/01/22 14:12:58

Don't hijack old threads for new problems.

mrwooly
Posts: 3
Joined: 2009/01/22 13:26:30

Re: php modules not matching

Post by mrwooly » 2009/01/22 14:18:14

Eh? This is the exact same problem.

mrwooly
Posts: 3
Joined: 2009/01/22 13:26:30

Re: php modules not matching

Post by mrwooly » 2009/01/22 14:20:58

SOLVED:

when running the ./configure then make then make install
install sees there's an existing directory
/usr/lib64/php5
and doesn't overwrite it - instead it has created
/usr/lib64/20090122
and put the .so files in there.

with a bit of renaming,
mv /usr/lib64/php5 /usr/lib64/php5.old
mv /usr/lib64/20090122 //usr/lib64/php5

and an apache restart
it now works fine.

hope this helps someone!

boksiora
Posts: 5
Joined: 2011/02/12 21:12:16

Re: php modules not matching

Post by boksiora » 2011/02/12 21:58:50

Please help here [url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=8387&forum=44]http://www.centos.org/modules/newbb/viewtopic.php?topic_id=8387&forum=44[/url], same problem

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

Re: php modules not matching

Post by pschaff » 2011/02/12 23:04:44

Please stop hijacking old threads.

Post Reply