X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org From: "David Christensen" To: References: <649FCDB25DBF4B1390FC07A8D707FF70 AT p43400e> Subject: RE: trouble running Apache 1.3.33-2 as a service Date: Tue, 25 Nov 2008 20:48:01 -0800 Message-ID: <76D933E8683D4B2BAF782BBEE896B1C8@p43400e> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" In-Reply-To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id mAQ4mbtA025714 René Berber wrote: > You didn't read the part about "cygrunsrv -u www -y tcpip ...", i.e. > install the service to run as user www. I read it, but thought I'd exhaust RTFM first. I'll keep your approach in mind for future reference. > BTW if you run Apache manually (as your tests show) and you are using > a different user (different than www), then you'll create logs and > .pid files that won't be accessible to user www, Apache will fail to > open those logs, .pid file, etc. So, you have to clean up your mess. The final clue! The remaining steps were: 1. Set "User" to "www" in /etc/apache/httpd.conf. 2. Reboot or kill Apache. /var/run/httpd.pid goes away by itself. 3. Move aside /var/log/apache/*log. 4. Start Apache as a service: $ net start httpd The CYGWIN httpd service is starting. The CYGWIN httpd service was started successfully. 5. Make the CGI scripts world-readable and world-executable: $ chmod 0755 /var/www/cgi-bin/* 6. Browse: http://localhost/ http://localhost/server-status http://localhost/server-info http://localhost/cgi-bin/printenv http://localhost/cgi-bin/test-cgi Thanks! :-) David -- 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/