Unable to install and run Apache httpd as Windows service
Matthew M
mmiller94720@yahoo.com
Sat Apr 30 11:25:00 GMT 2005
I know this has been asked half a dozen times
recently, but I haven't found a solution that works
for me.
I was able to install and run sshd as a service with
no problem (except I have to restart sshd after
booting the computer), but I'm having no such luck
with httpd.
Apache 1.3.29 has worked fine manually for weeks by
/usr/sbin/httpd or
/usr/sbin/apachectl start/stop
Using information from these web pages:
http://httpd.apache.org/docs/cygwin.html
http://sourceware.org/ml/cygwin/2005-04/msg00285.html
http://www.zemiandeng.com/zdengwiki/moin.cgi/HttpServer
I ran many variations on these commands:
root@machine ~
$ cygrunsrv -I httpd -p /usr/sbin/httpd -a "-f
/etc/apache/httpd.conf"
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20050430/6c62b7d1/attachment.ksh>
-------------- next part --------------
--
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/
More information about the Cygwin
mailing list