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/