Stopping httpd.exe on windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I start httpd.exe from a PHP script, using this command string on Win7:

  start /b "" /d "c:\Program Files (x86)\Apache Software Foundation"\Apache2.2\bin httpd.exe -f z:\path\to\my\httpd.conf

where z: is some drive letter and the backslashes are doubled as they are within a PHP string. This appears to work OK. However, when it comes to stopping it I have an error message. I'm trying initially from the console prompt:

  httpd.exe -k stop -f z:\path\to\my\httpd.conf

and the message is:

  (OS 5)Access is denied.  : failed to open the Apache2.2 Service

What is the right way to do this?

--
Cheers  --  Tim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux