delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/08/15/09:18:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
From: "Brian Wilson" <wilson AT ds DOT net>
To: Andrey Repin <cygwin AT cygwin DOT com>
Subject: Re: Cygwin 1.7.9 Apache2 startup question & issue.
Date: Mon, 15 Aug 2011 09:18:34 -0400
Message-Id: <20110815124547.M74386@ds.net>
In-Reply-To: <375880044.20110815105150@mtu-net.ru>
References: <20110814221231 DOT M84701 AT ds DOT net> <375880044 DOT 20110815105150 AT mtu-net DOT ru>
X-OriginatingIP: 57.250.242.249 (wilson)
MIME-Version: 1.0
X-IsSubscribed: yes
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

Hello Andrey:

> > I'm having a bit of trouble with starting the Cygwin Apache2 package on my Windows XP (SP3) system.
> 
> Why don't you use native Windows Apache HTTPD server?

Because I'd like to use a more *nix like environment than Windows.

> > ...Why does the apachectl2 help message display the usage for httpd2;
> 
> Because the syntax is exactly the same.

Yet they aren't the same command (the httpd and apachectl2 commands have different file sizes) so the help message displayed isn't 
for correct command.  Perhaps some of these options don't work, or don't work the way they are defined or explained.  Perhaps 
there are other options that aren't included in this help message.  I can't trust the information provided as it isn't for the 
correct command.

> > and why is there no definition for the -k option?
> 
> There is:
> >                         [-k start|restart|graceful|graceful-stop|stop]
> 
> There's no explanation, however, but honestly. it's all pretty self-explanatory.

The information provided is a usage statement (for the wrong command), not a definition or explanation.  What exactly is the 
difference between saying "apachectl2 start" (which works well) and "apachectl2 -k start"?  Exactly what does -k do?

What I really need is some help with the cygrunsrv command to start the apache2 running as a service.  If anyone knows what is 
wrong with the command I've used, or why the service dies without starting any httpd2 daemons, your help would be greatly 
appreciated.  Do I need to add '-e "CYGWIN=service"' (which is set as a System Variable already)? I'm trying to document the 
process of getting Apache2 up and running correctly so I can contribute something back to this community, but this one has got me 
stumped (so far).

$ cygrunsrv -I "CYGWIN apache2" --path /usr/sbin/apachectl2 --args "-D NO_DETACH -k start" --dep cygserver --user 
nobody --shutdown

> Sorry for my terrible english...

Actually your English is better than my Russian.
&#1053;&#1072; &#1089;&#1072;&#1084;&#1086;&#1084; &#1076;&#1077;&#1083;&#1077; &#1074;&#1072;&#1096; &#1072;&#1085;&#1075;&#1083;&#1080;&#1081;&#1089;&#1082;&#1080;&#1081; &#1083;&#1091;&#1095;&#1096;&#1077; &#1095;&#1077;&#1084; &#1084;&#1086;&#1081; &#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081; &#1103;&#1079;&#1099;&#1082;.
&#1044;&#1086; &#1089;&#1074;&#1080;&#1076;&#1072;&#1085;&#1080;&#1103; &#1087;&#1086;&#1082;&#1072;.

Sincerely,

Brian S. Wilson


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