From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10296 invoked by alias); 2 Nov 2011 14:31:55 -0000 Received: (qmail 10219 invoked by uid 22791); 2 Nov 2011 14:31:31 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Wed, 02 Nov 2011 14:31:17 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7A65A2C0485; Wed, 2 Nov 2011 15:31:14 +0100 (CET) Date: Wed, 02 Nov 2011 14:31:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Cygwin 1.7.9 Apache2 startup question & issue. Message-ID: <20111102143114.GB9159@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20110814221231.M84701@ds.net> <375880044.20110815105150@mtu-net.ru> <20110815124547.M74386@ds.net> <20110815144714.GA30555@trixie.casa.cgf.cx> <20111031115445.M8694@ds.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20111031115445.M8694@ds.net> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-11/txt/msg00029.txt.bz2 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