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: Error when stopping Apache |
|
Author |
|
crckr
Joined: 26 Apr 2006 Posts: 18
|
Posted: Sat 21 Oct '06 11:21 Post subject: Error when stopping Apache |
|
|
Hi,
I have downloaded httpd-2.2.3-win32-x86-ssl.zip and installed Apache 2.2 on my system along with PHP 5.1.6. Everything works beautifully, thank you for your great work! However, I'm having one minor problem that I can't solve. Everytime I stop the Apache daemon an error occurs, this is what the Event Viewer shows:
Quote: | Event Type: Error
Event Source: Service Control Manager
Event Category: None
Event ID: 7031
Date: 2006-10-21
Time: 11:03:36
User: N/A
Computer: X
Description:
The Apache2 service terminated unexpectedly. It has done this 1 time(s). The following corrective action will be taken in 0 milliseconds: No action. |
I start Apache by running these commands:
Code: | httpd.exe -f /etc/apache2/httpd.conf -k install
httpd.exe -f /etc/apache2/httpd.conf -k start |
And I stop it with:
Code: | httpd.exe -f /etc/apache2/httpd.conf -k shutdown |
I also uninstall the service with the following command, but the error occurs when stopping Apache, not uninstalling the service:
Code: | httpd.exe -f /etc/apache2/httpd.conf -k uninstall
|
Apart from displaying two error dialogs and creating an entry in the Event Viewer it doesn't cause anything else as far as I can see. But it is irritating to have it happen everytime I stop or restart Apache. So is there any way this can be solved?
TIA! |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7402 Location: EU, Germany, Next to Hamburg
|
Posted: Sat 21 Oct '06 12:02 Post subject: |
|
|
I have the same problem under Win2k3 server standart edition
but net stop Apache2 and net start Apache2 works without an error.
That error is caused by a shutdown function inside the php5apache2.dll that should free the memory. I wrote a mail to the PHP developer but still did got an answer  |
|
Back to top |
|
crckr
Joined: 26 Apr 2006 Posts: 18
|
Posted: Sat 21 Oct '06 14:54 Post subject: |
|
|
James Blond wrote: | I have the same problem under Win2k3 server standart edition but net stop Apache2 and net start Apache2 works without an error. |
I just tried net stop Apache2 on my Windows 2000 system, resulting in the same error as httpd.exe -k shutdown. If you get an answer from the developer would you be so kind to post a followup here? |
|
Back to top |
|
pnllan
Joined: 05 Dec 2005 Posts: 221
|
Posted: Sat 21 Oct '06 19:27 Post subject: |
|
|
Since you are getting that behavior, try going to the SERVICES.MSC and set the Apache2 service Startup type to Manual. Then reboot. See if you can uninstall service after that. |
|
Back to top |
|
crckr
Joined: 26 Apr 2006 Posts: 18
|
Posted: Sun 22 Oct '06 23:18 Post subject: |
|
|
It's not uninstalling the service that's the problem, it's stopping it. The error occurs when running one of the commands httpd.exe -k shutdown or net stop Apache2. It doesn't matter whether the Apache2 service is set to automatic startup or manual. |
|
Back to top |
|
|
|
|
|
|