delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/29/17:51:39

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Reply-To: <florent DOT lothon AT free DOT fr>
From: "Flo" <florent DOT lothon AT free DOT fr>
To: <cygwin AT cygwin DOT com>
Subject: RE : RE : 1.0.0 : Installing Apache as a new Service = Win32 error 1062 (Windows XP Pro)
Date: Sun, 29 Feb 2004 23:51:25 +0100
Message-ID: <001e01c3ff16$8fbb3540$e000a8c0@florent>
MIME-Version: 1.0
In-Reply-To: <Pine.GSO.4.56.0402291530180.19703@slinky.cs.nyu.edu>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i1TMpbQZ010040

Oh sorry, 

I was searching in the D:\cygwin\usr\share\doc\apache* directory

Ok I will test

thx

-----Message d'origine-----
Envoyé : dimanche 29 février 2004 21:34
À : Flo
Objet : Re: RE : 1.0.0 : Installing Apache as a new Service = Win32
error 1062 (Windows XP Pro)

Flo,

Did you actually *read* /usr/share/doc/Cygwin/apache-1.3.29-1.README?
FYI, lots of people on this list (including me) have Apache working as a
service (by following the instructions in the README).
	Igor

On Sun, 29 Feb 2004, Flo wrote:

> I found nothing in the doc.
> Does anybody has already installed Apache as a service in this mailing
> list?
>
> -----Message d'origine-----
> De : Stipe Tolj
> Envoyé : vendredi 27 février 2004 01:30
> À : florent<dot>lothon<at>free<dot>fr
> Cc : cygwin<at>cygwin<dot>com
> Objet : Re: 1.0.0 : Installing Apache as a new Service = Win32 error
1062 (Windows XP Pro)
>
> > According to this doc :
> >
> > Installing Apache as a new Service
> > Use the following statement to install httpd.exe as a new service:
> >
> >   $ cygrunsrv -I service_name-p /usr/local/apache/bin/httpd.exe [-a
arguments] \
> >       [-e VAR=VALUE] [-t auto|manual] [-u user] [-w passwd]
> >
> > Where -a is used to pass command line arguments (such as -DFOO
> > defines) to httpd.exe, and -e is used to pass environment variables.
> > If necessary you may use the -t options to set the autostart
> > configuration for the service. If you want the new service to run
> > under a different userid, you will have to supply the -u and -w
> > options.
> >
> > When i start apache as this : /usr/sbin/httpd.exe
> > apache is running ok
> >
> > but when i install it as service with : cygrunsrv -I apache -p
> > /usr/sbin/httpd.exe
> >
> > and i try to start the service with :
> > $ cygrunsrv -S apache
> > i get :
> > cygrunsrv: Error starting a service: QueryServiceStatus:  Win32
error
> > 1062: Le service n'a pas été démarré.
> >
> > Then when i start is with Windows i get this :
> > Erreur 1067 : le processus s'est arrêté inopinément
> > (Error 1067 : the process sudenly stopped)
> >
> > My windows XP session is running as the "Flo" user from
> > "Administrateurs" group, so I updated the httpd.conf :
> > User Flo
> > Group Administrateurs
> >
> > I also tried this :
> >
> > Flo AT florent ~/temp
> > $ cygrunsrv -I apache -p /usr/sbin/httpd.exe -u Flo -w flo
> >
> > Flo AT florent ~/temp
> > $ cygrunsrv -S apache
> > cygrunsrv: Error starting a service: StartService:  Win32 error
1069:
> > L'échec d'une ouverture de session a empêché le démarrage du
service.
> >
> > I think there is other thing to do but what ?
>
> when invoking apache's httpd via cygrunsrv you will have to tell httpd
> to not detach from the calling shell (which is in fact the cygrunsrv
> process itself). Otherwise the "binding" gets loose.
>
> Please check /usr/share/doc/Cygwin/apache* for a manual and section on
> how to correctly install the httpd as service.
>
> Stipe

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his
route
to the bathroom is a major career booster."  -- Patrick Naughton


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