Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Installing apache as service w/ Cygwin

0 views
Skip to first unread message

Samik Raychaudhuri

unread,
Jan 4, 2003, 1:10:38 AM1/4/03
to
Hello,
I am trying to install apache as service in Win XP through Cygwin, using
cygrunsrv. I have used this command:
cygrunsrv -I apache_httpd -p /usr/local/apache/bin/httpd.exe -a "-f
/usr/local/apache/conf/httpd.conf" -t auto

The command puts an entry in the services table alright, but doesn't
work. When I try to manually start it, I immediately get a message saying:

The apache_httpd service started and then stopped. Some service stops
automatically .... etc.

The error_log file in apache directory shows the following entry
corresponding to this try:
[Sat Jan 4 00:07:38 2003] [error] (13)Permission denied: could not open
transfer log file /usr/local/apache/logs/access_log.

Can anybody point out what's going on here?
Thanks for any hints.
Regards,
-Samik
--
Samik Raychaudhuri
University of Wisconsin, Madison
http://samik.freeshell.org/

Samik Raychaudhuri

unread,
Jan 4, 2003, 10:56:20 PM1/4/03
to
Ah .. I found the solution after much research, so thought of sharing it.
* Change in httpd.conf: Put a username with admin privileges.
* chown all files corresponding to httpd process (eg. error_log,
access_log etc) to that user. At least make sure, they have 'w' bit on
for all (well !! May not be that secure blah blah !! but what the heck ..)
* Don't have to use the '-u' while installing this as service, let it
run from System a/c (the default).
Well, now httpd runs as service alright, and it has an entry in
'services' table too, but there it shows as 'Not Started', though it is
running and has been started while starting up only. Donno what's the
reason, but guess, I won't bother :-P
Still, if anybody knows more details, most welcome to let me know.
-Samik

Samik Raychaudhuri

unread,
Jan 4, 2003, 10:59:12 PM1/4/03
to
Now I am going to install DBD::Pg for postgresql, and hoping it would
work through apache, with perl cgi programs !!
Wish me luck ;-)
0 new messages