delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/11/02/10:32:02

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Wed, 2 Nov 2011 15:31:14 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin 1.7.9 Apache2 startup question & issue.
Message-ID: <20111102143114.GB9159@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <20110814221231 DOT M84701 AT ds DOT net> <375880044 DOT 20110815105150 AT mtu-net DOT ru> <20110815124547 DOT M74386 AT ds DOT net> <20110815144714 DOT GA30555 AT trixie DOT casa DOT cgf DOT cx> <20111031115445 DOT M8694 AT ds DOT net>
MIME-Version: 1.0
In-Reply-To: <20111031115445.M8694@ds.net>
User-Agent: Mutt/1.5.21 (2010-09-15)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On Oct 31 07:00, Brian Wilson wrote:
> I would like to create a bug report on the cygrunsrv command.  I've tried 
> everything I can think of, and written to others who have web sites about using 
> Cygwin and Apache, and no one was able to get Apache to run under another, 
> secure, account from the administrative account with a command like the 
> following.
> 
> $ cygrunsrv -I "CYGWIN apache2" --path "/usr/sbin/httpd2" --args "-DNO_DETACH -k 
> install" --dep cygserver --user nobody --passwd "password" --shutdown --type 
> "auto" --env "CYGWIN=server" --desc "Cygwin Apache2 service for the HTTPD2 
> daemons."
> 
> If I'm doing something wrong, please let me know what it is [...]

Apart from the fact that "CYGWIN=server" is an obsolete option (see
http://cygwin.com/cygwin-ug-net/using-cygwinenv.html#cygwinenv-removed-options)
you don't provide any details whatsoever except for "it doesn't work".

*What* doesn't work?  Does the above cygrunsrv -I fail?  Or does
cygrunsrv not start httpd2?  Or does cygrunsrv start httpd2 but httpd2
refuses to run?

Did you inspect the event log or the file "/var/log/CYGWIN apache2.log"(*)?
Is cygserver actually running, provided it's really required by httpd2?
Does nobody have enough privileges like "Allow to logon as service"?
Did you set the apache configuration so that it doesn't try to call
setuid?  Are the file permission correct?  Etc.


Corinna

(*) Btw., it would be preferrable to use a more simple service name like
    "apache2" or "httpd2", otherwise you have spaces in the service
    name.  Note that sshd is installed with -I sshd -d "CYGWIN sshd",
    for instance.

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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