note 94730 rejected from faq.databases by danbrown
| From: | danbrown@php.net | Date: | Fri, 20 Nov 2009 17:25:35 +0000 |
| Subject: | note 94730 rejected from faq.databases by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-163140@lists.php.net to get a copy of this message | ||
Note Submitter: rod at rodneysherer dot com
----
I am using mysql-5.1.41-win32, php-5.3.0-Win32-VC9-x86, and apache_2.2.14-win32-x86-no_ssl and I am
having trouble connecting to my database using PHP. I have no problem with Apache in regards to
running htm or php files and can issue the phpinfo(); command without issue, but when I try to issue
mysql_connect($db_server, $db_user, $db_password) or die ( "<H3>Server
unreachable</H3>"); it restarts my Apache server with the following error in the log
file: [notice] Parent: child process exited with status 3221225477 -- Restarting.
I have looked up this error and the popular resolution seems to be to copy libmysql.dll all over the
place. I have the directory that is in in my path, so I don't think that is the issue, but to
make sure I did copy it to all applicable areas: System32, PHP bin, Apache bin. I have also made the
MySql/bin directory the first one in my path as recommended by another poster here. My connection
still fails and causes the Apache server to restart.
I also have several unrelated failures in my log file when Apache restarts:
[Fri Nov 20 12:02:23 2009] [notice] Parent: child process exited with status 3221225477 --
Restarting.
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on
line 0
[Fri Nov 20 12:02:24 2009] [notice] Apache/2.2.14 (Win32) PHP/5.3.0 configured -- resuming normal
operations
[Fri Nov 20 12:02:24 2009] [notice] Server built: Sep 28 2009 22:41:08
[Fri Nov 20 12:02:24 2009] [notice] Parent: Created child process 1860
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_curl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_openssl.dll' - The specified module could not be found.\r\n in Unknown on
line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program
Files\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on
line 0
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Child process is running
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Acquired the start mutex.
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Starting 64 worker threads.
[Fri Nov 20 12:02:24 2009] [notice] Child 1860: Starting thread to listen on port 80.
Any ideas?