Gerry Reno wrote:
Today I tried starting httpd with cygrunsrv with similar results:
$ cygrunsrv -S httpd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
1062:
The service has not been started.
[EMAIL PROTECTED] ~/docs
$ ps -efl
UID PID PPID TTY STIME COMMAND
greno 3404 1 con 22:46:08 /usr/bin/bash
nobody 1420 1 ? 16:49:41 /usr/sbin/httpd
nobody 2800 1420 ? 16:49:42 /usr/sbin/httpd
nobody 2828 1420 ? 16:49:42 /usr/sbin/httpd
nobody 2248 1420 ? 16:49:42 /usr/sbin/httpd
nobody 1264 1420 ? 16:49:42 /usr/sbin/httpd
nobody 3208 1420 ? 16:49:42 /usr/sbin/httpd
greno 2736 3404 con 16:49:47 /usr/bin/ps
As you can see the service does start even though it is reporting that
it is not started. Am I configuring something wrong?
Good question. You might want to start here:
Problem reports: http://cygwin.com/problems.html
Also, you need to make sure that the user you created has all the
proper permissions httpd needs to run as a service. If it needs
to switch user contexts, etc., this is important. I should point
out that adding such a new user is a security hole, if that's a
concern for you. Perhaps you'll just want to try getting this
working with the default SYSTEM user. If that works, you can
backtrack from there. You can also consult the openssh ssh-host-config
script. You can follow the steps it uses to create a new user with
the proper permissions to run sshd on W2K3 (where SYSTEM doesn't have
the proper permissions).
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
--
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/