delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/01/14/16:31:26

X-Spam-Check-By: sourceware.org
Message-ID: <012a01c73823$36295e00$84017ece@jabelxp>
From: "Jay Abel" <jabel AT flex DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Apache how-to for cygwin
Date: Sun, 14 Jan 2007 11:30:22 -1000
MIME-Version: 1.0
X-Mailer: Microsoft Outlook Express 6.00.2900.3028
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

I must have googled the wrong terms, for the only reference I found 
[apparently] left out a few details.  My installation of XP (home) 
wouldn't allow the service to run as system (it would just exit with a 
cryptic error from Windows that it wasn't allowed to do something 
vague -- I suspect it was trying to change users but I don't know for 
sure).

If run as another user the setup of the var directory is critical, all 
permissions need to be just so or it exits without starting (or giving 
any useful error message in the log file).  Also, the paths as 
distributed don't agree with the ones in the howto from apache.org, I 
couldn't find / didn't know where to look for, a *real* cygwin version 
by the package maintainer.

I'm sure that such a howto exists but I just couldn't find it.  Could 
someone who has set up apache as a service please point me to the 
correct document if it exists?

I did finally get it running as a service, but that required setting 
permissions on /var/run more permissive than I would like.  Sadly on XP 
home, you cannot define new groups so you have to choose from 
Administrators, Users, or None.  I don't want apache to run as an 
administrator for security reasons, but I'm not sure that giving write 
access to the /var/run directory to Users is a good thing either (am I 
wrong here?).

I suppose there is a way to tell apache to put its .pid file in a 
different directory, so this might be the best approach if I knew how to 
do it.  (like /var/run/apache/...)

If the howto is in need of work, I'm not just complaining, but willing 
to work on it under the maintainer's direction if such help is needed 
and wanted.

I was running the native version of apache but plan to migrate this 
server to linux once volume picks up and didn't want a horrible job 
fixing things when I do that, so it seemed like a reasonable thing to 
switch to the cygwin version.  So far, other than the problem with the 
/var/run directory, which I can live with, it does everything I need.

I noticed while looking that httpd2 is available, should I be thinking 
about using that instead?  That is, are there compelling reasons to 
switch (such as support being dropped for version 1 or significant 
improvements)?

Jay 


--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019