delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/21/17:29:43

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 89503 DOT 4516 DOT bm AT omp401 DOT mail DOT sp1 DOT yahoo DOT com
X-YMail-OSG: 7kjCJ6IVM1mdEkVgkNZFdLZRyr5LeKF0I2yqfZpvnSb.OX3iGoR6dX9ANrWV42NtBjNF5dXCjR80ABvpKSwbrVJzHd2nCtlSaQ--
X-Mailer: YahooMailRC/902.40 YahooMailWebService/0.7.185
Date: Mon, 21 Apr 2008 14:29:10 -0700 (PDT)
From: Dunston Rocks <rocksdunston AT yahoo DOT com>
Subject: cygrunsrv:Error Starting a service: QueryServiceStatus: Win32 Error 1062
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Message-ID: <796161.34513.qm@web46004.mail.sp1.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Am encountering cygrunsrv :Errro Starting a service: QueryServiceStatus: Win32 Error 1062: The service was not started when trying to start apache 2.2.6 from under cygwin

Steps followed:
1) Added "server" to cygwin variable 
2) Started cygserver-config
3) Added httpd2 as a service using " cygrunsrv -I httpd2 -d "CYGWIN httpd2" -p /usr/sbin/httpd2 \
      -a "-DNO_DETACH" -y cygserver -e "CYGWIN=server" -s TERM -o" from /usr/share/doc/Cygwin/apache2-2.2.6.README
4) Modifed /etc/apache2/httpd.conf to use username and group-name with correct privileges. (Earlier got error about "daemon" being invalid domain name, etc)

Neither does /usr/sbin/httpd2.exe work nor does the above

I saw some threads on this which suggested giving user SYSTEM complete privileges on C:/cygwin, C:/cygwin/var and C:/cygwin/var/log.

All users listed under "Control Panel -> User Accounts" have full read-write permissions on C:/cygwin and all subfolders. But I am still encountering above error.

Can anyone recommend any solutions?

Thanks







      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


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