| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| X-Spam-Check-By: | sourceware.org |
| From: | "David Christensen" <dpchrist AT holgerdanske DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| References: | <F7C38DDE00AA4DCF9B100FB2BF658A27 AT p43400e> <ggg6t3$hq6$1 AT ger DOT gmane DOT org> <649FCDB25DBF4B1390FC07A8D707FF70 AT p43400e> <ggic71$1qs$1 AT ger DOT gmane DOT org> |
| 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 |
| In-Reply-To: | <ggic71$1qs$1@ger.gmane.org> |
| X-IsSubscribed: | yes |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |