Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <1077276363.4035eecb8fa1e@imp5-q.free.fr> Date: Fri, 20 Feb 2004 12:26:03 +0100 From: florent DOT lothon AT free DOT fr To: cygwin AT cygwin DOT com Subject: Installing Apache as a new Service = Win32 error 1062 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-IsSubscribed: yes Hello, I think this doc isn't enough to succesfully install Apache as service for new users of cygwin as me : 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é. I think there is other thing to do but what ? Florent -- 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/