MySQL Forums
Forum List  »  PHP

Re: Problem link PHP 5.1.2 + Mysql 5.0.18 + Apache 2.0.55
Posted by: cantankerous_bunch
Date: January 26, 2007 04:02PM

PHP Warning: PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: snmp: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0
PHP Warning: PHP Startup: sockets: Unable to initialize module\nModule compiled with module API=20060613, debug=0, thread-safety=1\nPHP compiled with module API=20050922, debug=0, thread-safety=1\nThese options need to match\n in Unknown on line 0

I ran into the same problem. The reason you're getting the above error message is because the module was not compiled for the version of the PHP your computer is loading. If you copied old versions PHPTS5.DLL file or any of the other files in other folders or other location and this location is in your library path before your PHP folder than it will load the OLD versions instead of the one located in your PHP directory.

Make sure to check windows/system32 if you're using windows xp to see if there are php dll files there and delete them.

The best way to find out which version of the PHP dll it is loading is by using phpinfo(). If it doesn't say version 5.2 then you have found your culprit.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem link PHP 5.1.2 + Mysql 5.0.18 + Apache 2.0.55
January 26, 2007 04:02PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.