public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: Cygwin 1.7.9 Apache2 startup question & issue.
Date: Wed, 02 Nov 2011 14:31:00 -0000	[thread overview]
Message-ID: <20111102143114.GB9159@calimero.vinschen.de> (raw)
In-Reply-To: <20111031115445.M8694@ds.net>

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

  reply	other threads:[~2011-11-02 14:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 22:24 Brian Wilson
2011-08-15  7:05 ` Andrey Repin
2011-08-15 13:18   ` Brian Wilson
2011-08-15 14:47     ` Christopher Faylor
2011-10-31 12:00       ` Brian Wilson
2011-11-02 14:31         ` Corinna Vinschen [this message]
2011-08-14 22:26 Brian Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111102143114.GB9159@calimero.vinschen.de \
    --to=corinna-cygwin@cygwin.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).