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: <000701c5118a$342b0200$0200a8c0@helena> From: "Bert-Steffen Visser" To: Subject: Re: Apache as a Windows Service? Date: Sun, 13 Feb 2005 06:09:32 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Spam-Processed: net.hopto.org, Sun, 13 Feb 2005 06:09:51 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 192.168.0.2 X-Return-Path: nospam AT nospam DOT com X-MDaemon-Deliver-To: cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j1D59sKi004278 I also had problems installing httpd (apache 1.3.29) as a system service, cygrunsrv -I httpd -d 'Cygwin HTTPD' -p /usr/sbin/httpd -a '-F' cygrunsrv -S httpd /var/logs/apache/error_log reports: --------------- [Sun Feb 13 05:20:40 2005] [alert] (22)Invalid argument: setuid: unable to change to uid: -1 [Sun Feb 13 05:20:40 2005] [alert] (22)Invalid argument: setuid: unable to change to uid: -1 [Sun Feb 13 05:20:40 2005] [alert] (22)Invalid argument: setuid: unable to change to uid: -1 [Sun Feb 13 05:20:40 2005] [alert] (22)Invalid argument: setuid: unable to change to uid: -1 [Sun Feb 13 05:20:40 2005] [notice] Apache/1.3.29 (Cygwin) configured -- resuming normal operations [Sun Feb 13 05:20:40 2005] [notice] Accept mutex: pthread (Default: pthread) [Sun Feb 13 05:20:40 2005] [alert] Child 3712 returned a Fatal error... Apache is exiting! [Sun Feb 13 05:20:40 2005] [alert] (22)Invalid argument: setuid: unable to change to uid: -1 --------------- So, perhaps our problems are related. I also found some older references reporting the same problem, but no with a clear solution: http://www.cygwin.com/ml/cygwin/2003-10/msg00557.html http://sources.redhat.com/ml/cygwin/2002-10/msg01009.html After quite a bit of trial and error (thought I messed something up with security rights), the solution seems to be to add the following line to /etc/apache/httpd.conf: User SYSTEM (or whatever your name is for the Local System account in /etc/passwd) I wonder if this is normal. I can't remember I needed this with previous apache versions. At least, it would be nice to add this in the README. greetz, Bert -- 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/