cygwin: I have a fresh install of Cygwin on Windows XP Professional SP3, including Apache.
I have created a Windows account "www" and updated /etc/passwd: $ mkpasswd -l | grep www >> /etc/passwd I have edited /etc/apache/httpd.conf: $ cvs diff -r 1.1 httpd.conf Index: httpd.conf =================================================================== RCS file: /cvs/dpchrist/a64x23800p/etc/apache/httpd.conf,v retrieving revision 1.1 retrieving revision 1.2 diff -r1.1 -r1.2 139,140c139,140 < MinSpareServers 5 < MaxSpareServers 10 --- > MinSpareServers 1 > MaxSpareServers 1 146c146 < StartServers 5 --- > StartServers 1 155c155 < MaxClients 150 --- > MaxClients 5 171c171 < MaxRequestsPerChild 0 --- > MaxRequestsPerChild 100 324c324 < #User nobody --- > User www 332c332 < ServerAdmin [EMAIL PROTECTED] --- > ServerAdmin [EMAIL PROTECTED] 350c350 < #ServerName www.example.com --- > ServerName a64x23800p.holgerdanske.com I can successfully start Apache via apachectl: $ apachectl start /usr/sbin/apachectl start: httpd started "apachectl status" does not work, even if I attempt to enable it in httpd.conf: $ apachectl status Not Found The requested URL /server-status was not found on this server. _________________________________________________________________ Apache/1.3.33 Server at a64x23800p.holgerdanske.com Port 80 "apachectl stop" does not stop Apache, and displays a mangled error message: $ apachectl stop ?) not runninghectl stop: httpd (pid 2628 I can kill Apache if I choose the right PID: $ ps -a | grep httpd 2628 1 2628 2628 0 500 21:21:48 /usr/sbin/httpd 1984 2628 2628 1984 0 500 21:35:40 /usr/sbin/httpd 3956 0 0 3956 0 500 Dec 31 /usr/sbin/httpd $ kill 2628 I would like to have Apache automatically start at system boot and stop and system shutdown, and have attempted to follow the instructions given in: /usr/share/doc/Cygwin/apache-1.3.33.README I installed Apache as follows: $ cygrunsrv.exe -I httpd -d "CYGWIN httpd" -p /usr/sbin/httpd -a -F "Services" shows: Name: CYGWIN httpd Description: <blank> Status: <blank> Startup Type: automatic Log on as: Local System Attempting to start the service: $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service could not be started. The service did not report an error. More help is available by typing NET HELPMSG 3534. Looking at /var/log/apache/error_log reveals no clues. Event Viewer shows: Information -- The CYGWIN httpd service was successfully sent a start control. Information -- The CYGWIN httpd service entered the stopped state. When I attempt to start CGYWIN httpd via Services, I get a dialog: Services The CYGWIN httpd service on Local Computer started and then stopped. Some services may stop automatically if they have no work to do, for example, the Performance Logs and Alerts service. I have tried to RFTM and STFW, including the Cygwin mailing list archives, but haven't found a solution. $ man httpd $ cygrunsrv --help 2>&1 | less cygcheck.out is attached. Any suggestions? TIA, David
cygcheck.out
Description: Binary data
-- 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/