Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
In-Reply-To: <24BDFF97F1939B44BCBA2E6AADEB0A28233917@mailsc.engineering.netscaler.com>
References: <24BDFF97F1939B44BCBA2E6AADEB0A28233917@mailsc.engineering.netscaler.com>
Mime-Version: 1.0 (Apple Message framework v619)
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Message-Id: <1DDE2584-08C9-11D9-B6BD-000D932D0448@rehley.net>
Cc: <cygwin@cygwin.com>
From: Peter Rehley <peter@rehley.net>
Subject: Re: apache2 as service
Date: Fri, 17 Sep 2004 09:46:26 -0700
To: "Prakash Khemani" <khemani@netscaler.com>
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i8HGmJIm011251


On Sep 17, 2004, at 9:18 AM, Prakash Khemani wrote:

> Hi,
>
> I compiled & installed apache2 on cygwin+WinXP. I am able to use it 
> fine
> - but I am not able to install it as a service.
>
> The run as User in the httpd.conf file is SYSTEM.
>
> I installed apache2 asa service using the following command
>
> cygrunsrv -I cygapache -p /usr/local/apache2/bin/httpd.exe -a "-k 
> start"
> -t auto
>
I'll assume that it seemed to install correctly.  As a quick simple 
sanity check try typing the command in a bash prompt and see what 
happens.  Make sure that starts ok.  If it goes to the background, you 
will need to find the parameter that keeps apache in the foreground.  
cygrunsrv needs this.  Otherwise it can say that the service has not 
started when it is running.

> When I try to start it
> cygrunsrv -S cygapache
>
> I get the following error
>
> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
> 1062:
> The service has not been started.
>
> Nothing is written to /var/log/cygaapche.log or to
> /usr/local/apache2/log/error_log
>
Check the windows event viewer for more logs.  Might be nothing, but 
might also give hints to what may be happening.

> The pid stored in httpd.pid changes but the httpd processes don't show
> up on doing ps -ae
>
Almost sounds like apache wants to start, but is encountering a problem.

> What am I doing wrong?
>
> I compiled and installed apache2 as the network user ENG/khemani. I had
> to change the permissions on apache2/logs directory to be able to run
> apache2 as the user SYSTEM.
>
> What more should I do?
Configuration problems.  File permissions.  Check them all.

>
> Thanks,
> Prakash
>
> --
> 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/
>
>
>
A Møøse once bit my sister


--
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/


