This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Unable to install and run Apache httpd as Windows service
- From: "Wes S" <wess at acegroup dot cc>
- To: cygwin at cygwin dot com
- Date: Sat, 30 Apr 2005 09:07:58 -0400
- Subject: Re: Unable to install and run Apache httpd as Windows service
On 30 Apr 2005 at 2:50, Matthew M wrote:
> I know this has been asked half a dozen times
> recently, but I haven't found a solution that works
> for me.
>
[snip]
> I ran many variations on these commands:
> root@machine ~
> $ cygrunsrv -I httpd -p /usr/sbin/httpd -a "-f
> /etc/apache/httpd.conf"
That command worked fine on my W2k machine. only difference is I used /etc/apache.new/httpd.conf . Don't know why I have a /etc/apache and a /etc/apache.new directory on my box.
Service was still working after a reboot.
Wes
>
> I've done this with and without specifying the config
> file, and with and without -F option. I've also
> included 'User SYSTEM' in my httpd.conf per Bert's
> suggestion:
> http://sourceware.org/ml/cygwin/2005-02/msg00414.html
> All with the same result:
>
> root@machine ~
> $ cygrunsrv -S httpd
> cygrunsrv: Error starting a service:
> QueryServiceStatus: Win32 error 1053:
> The service did not respond to the start or control
> request in a timely fashion.
>
> I can see in my Windows services panel that httpd is
> installed, but it perpetually shows httpd as
> "starting," and it won't actually run.
>
> root@machine ~
> $ cygrunsrv -E httpd
> cygrunsrv: Error stopping a service:
> QueryServiceStatus: Win32 error 1053:
> The service did not respond to the start or control
> request in a timely fashion.
>
> root@machine ~
> $ cygrunsrv -R httpd
> cygrunsrv: Error removing a service: ControlService:
> Win32 error 1061:
> The service cannot accept control messages at this
> time.
>
> Though it does show the service as removed on next
> reboot.
>
> At some point in the installation of sshd as a
> service, it created the (disabled) Windows user named
> sshd, but no corresponding httpd user was ever created
> for Apache during that installation.
>
> Are there any more suggestions, or am I doomed to run
> Apache manually unless I install the native windows
> version?
>
> btw, Apache 1.3.33 would never run even manually,
> perhaps because it was looking in the wrong
> directories for the modules.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/