delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/17/12:48:31

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
In-Reply-To: <24BDFF97F1939B44BCBA2E6AADEB0A28233917@mailsc.engineering.netscaler.com>
References: <24BDFF97F1939B44BCBA2E6AADEB0A28233917 AT mailsc DOT engineering DOT netscaler DOT com>
Mime-Version: 1.0 (Apple Message framework v619)
Message-Id: <1DDE2584-08C9-11D9-B6BD-000D932D0448@rehley.net>
Cc: <cygwin AT cygwin DOT com>
From: Peter Rehley <peter AT rehley DOT net>
Subject: Re: apache2 as service
Date: Fri, 17 Sep 2004 09:46:26 -0700
To: "Prakash Khemani" <khemani AT netscaler DOT com>
X-IsSubscribed: yes
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/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019