This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

trouble running Apache 1.3.33-2 as a service


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
< MinSpareServers 5
< MaxSpareServers 10
> MinSpareServers 1
> MaxSpareServers 1
< StartServers 5
> StartServers 1
< MaxClients 150
> MaxClients 5
< MaxRequestsPerChild 0
> MaxRequestsPerChild 100
< #User nobody
> User www
< ServerAdmin you@your.address
> ServerAdmin
< #ServerName
> ServerName

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

$ apachectl status

                                   Not Found

   The requested URL /server-status was not found on this server.

    Apache/1.3.33 Server at Port 80

"apachectl stop" does not stop Apache, and displays a mangled error

$ 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


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

Information -- The CYGWIN httpd service entered the stopped state.

When I attempt to start CGYWIN httpd via Services, I get a dialog:


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?



Attachment: cygcheck.out
Description: Binary data

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]