Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP extensions not loading


ghost's Avatar
0 0

I'm running Apache/PHP/MySQL on my pc (Windows XP). Everything was fine until about 3 hours ago. I was making a backup of my htdocs folder and some MySQL tables on a ZIP disk, when my pc froze and I had to reset.

It booted up fine, and I was able to complete the backup. After this, when I tried to view my site, I get the error message:

Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\config.inc.php on line 2

This is the Apache error log:

[Thu Dec 21 20:44:10 2006] [notice] Apache/2.2.3 (Win32) PHP/5.2.0 configured -- resuming normal operations
[Thu Dec 21 20:44:10 2006] [notice] Server built: Jul 27 2006 16:49:49
[Thu Dec 21 20:44:10 2006] [notice] Parent: Created child process 2360
PHP Warning:  PHP Startup: mbstring: 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: curl: 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: 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: zip: 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
[Thu Dec 21 20:44:10 2006] [notice] Child 2360: Child process is running
[Thu Dec 21 20:44:10 2006] [notice] Child 2360: Acquired the start mutex.
[Thu Dec 21 20:44:10 2006] [notice] Child 2360: Starting 250 worker threads.
[Thu Dec 21 20:44:11 2006] [notice] Child 2360: Starting thread to listen on port 80.

As you can see, none of the 4 extensions I have enabled will load.

Please help me to get them back.


ghost's Avatar
0 0

Problem was solved by downgrading to PHP 5.1.6