Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache hangs on shutdown when mysql is loaded. |
|
Author |
|
enacranizm
Joined: 08 Jan 2007 Posts: 2
|
Posted: Mon 08 Jan '07 7:12 Post subject: Apache hangs on shutdown when mysql is loaded. |
|
|
Please help me save my hair.
I've been unable to find this addressed anywhere, but after setting up
Apache, PHP and Mysql, I was able to get everything up and running just
fine.
Running on NT4 sp6, incidentally.
I ran a test page with:
phpinfo(),
$mysqli = new mysqli("localhost", "root", "", "mysql");
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
printf("Host information: %s\n", $mysqli->host_info);
$mysqli->close();
All looked fine, phpinfo displayed pretty tables in it's output,
mysqli->host_info() gave me: "Host information: localhost via TCP/IP."
The problem is when I try to shut down Apache. Dr. Watson pops up two
windows, generates no core, the Apache child shuts down, but the parent just hangs.
Nothing in the Apache error log. It shows normal shutdown.
When I try to kill it from task manager, I get an "Access denied" error.
I startup Cygwin and run ps -elfW | grep http, it shows up. I try to
kill -9 <pid>, it returns an error "pid not found".
Interestingly, in the windows services dialogue, if I select the line with
Apache, both the start and stop buttons are disabled!
I have it set to manual startup, so it's not that.
I can't stop it, can't restart. All I can do is reboot windows.
This problem doesn't occur when I comment out the extension=php_mysqli.dll in php.ini.
It happens just the same with Apache 1.3 and 2.2.3, and regardless of
whether I'm using php_mysqli or just php_mysql.
Am I missing something? What else can I look at?
Thx,
Dave |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Mon 08 Jan '07 10:03 Post subject: |
|
|
Which version of PHP do you run? |
|
Back to top |
|
enacranizm
Joined: 08 Jan 2007 Posts: 2
|
Posted: Mon 08 Jan '07 16:04 Post subject: |
|
|
5.2.0.0
I neglected to mention that I also checked windows event viewer.
Also nada.
It's the most confounding thing.
Somebody please help! |
|
Back to top |
|
|
|
|
|
|