delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/07/16:04:14

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; q=dns; s=default; b=d0Q7wFJCGPG95bF5DtSMnt+mwHuk09
JdsGox08VsG2VRO8PZfK8t6K8HWamapiR6ELG0MFWERmH9qyztgTsycwo8FmQzhn
ESGmXNEZKN3vTmFZbdRufHuaAsvDE0w0MBGQSq8Ggvn1yvMPXaPegkMJbVh1a8yy
TfB7a8YNWCR6I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:to:from:subject:date:message-id:references
:mime-version:content-type:content-transfer-encoding
:in-reply-to; s=default; bh=tYAVsC0WINTtMfhqwFqYhrxtHw8=; b=W63Q
TUSZfTzXhsZiNpZqb9Foe1DnzjzvjBAvWDDnGPGGtYejAup4bwgifQNIliwCLmD5
foj5KxZJ3ZvZ1yR1hHlc6vRyZ8KFKcEGWPH9J9I23dRKBcwJ/X4oPn6THjuWAbzU
XWluN2cFBIpT3mDC2nyW1y/HzvRQnVTZfcU5140=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.7 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,RCVD_NUMERIC_HELO,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS,T_FSL_HELO_BARE_IP_2 autolearn=no version=3.3.2
X-HELO: plane.gmane.org
To: cygwin AT cygwin DOT com
From: Andrew DeFaria <Andrew AT DeFaria DOT com>
Subject: Re: Setting up Apache2 with mod_perl and Apache2::AuthCookieLDAP
Date: Wed, 07 May 2014 13:03:41 -0700
Lines: 88
Message-ID: <536A919D.6000306@DeFaria.com>
References: <lk9hbp$ogl$1 AT ger DOT gmane DOT org> <8510060002 DOT 20140507172342 AT yandex DOT ru> <lke0ku$f3t$1 AT ger DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
In-Reply-To: <lke0ku$f3t$1@ger.gmane.org>
X-IsSubscribed: yes

First off, David Habermann, you really should respond to the list 
instead of emailing me directly so that others can benefit. Dave wrote:

 >If you are using a Cygwin based Apache then it will follow symlinks=20
 >whereas my experience with the Windows based Apache it doesn't.

Although not a popular opinion, I agree with you.  Cygwin based Apache works
and has a number of desirable properties.

 >
 >> However I had set up Apache2 as a Windows service before so I know it's
 >> doable. I just forget how to do it! ;-) I thought it was just to specify
 >> -k or perhaps -DNO_DETACH or something like that...

I just went through the configs and it (httpd2-config) asked if I wanted to=
  create a service,
I said yes and was all set.=20=20
/bin/cygserver-config (cygserver is apparently required)
/usr/sbin/httpd2-config

Hope this helped.
------

Yes it did! It's been a long time and in the meantime somebody made 
/usr/sbin/httpd2-config which sets up the service nicely.

On 5/7/2014 12:13 PM, Andrew DeFaria wrote:
> On 5/7/2014 6:23 AM, Andrey Repin wrote:
>>> Goal: Set up Apache2 on my Windows laptop with mod_perl working as well
>>> as Apache2::AuthCookieLDAP and write an example login page that
>>> authenticates to Active Directory using AuthCookieLDAP.
>>
>> Little bit OT: Is this necessary to set up Cygwin Apache/Perl?
>
> I view my development environment as "Linux". When I don't have bona
> fide Linux at my fingertips and they shove a Windows box under my
> keyboard I rely on Cygwin to provide a "Linux-like" environment. True
> it's not strictly "necessary" to set up a Cygwin Apache/Perl but it is
> what I'm best familiar and comfortable with.
>
>>> First problem (minor): I can't figure out how to install Apache2 as a
>>> Windows service. For now I can just do apachectl2 start but would like
>>> to configure it as a real service. I've tried:
>>
>>> Adefaria-lt:cygrunsrv -I httpd2 -d 'CYGWIN Apache2' -p
>>> /usr/sbin/httpd2.exe -a '-DNO_DETACH'
>>> Adefaria-lt:net start httpd2
>>> The CYGWIN Apache2 service is starting.
>>> The CYGWIN Apache2 service could not be started.
>>
>>> The service did not report an error.
>>
>> What's in Apache logs?
>
> Nothing!

Let me restate. The problem is there are too many log files! There's 
/var/log/apache2/[error|access]_log (which shows nothing) and 
/var/log/apache2.log (which also shows nothing) but then there's 
/var/log/httpd2.log which shows:

Syntax error on line 172 of /etc/apache2/httpd.conf:
DocumentRoot must be a directory

My DocumentRoot was "/cygdrive/a/web" because I mound my home directory 
from a NetApp (I believe) to my (unused) A drive. I assure you that 
"web" is a directory in my home directory. I've also tried the following 
but all failed:

DocumentRoot "a:/web"
DocumentRoot "//<server>/<share>/adefaria/web"
DocumentRoot "/home/adefaria/web" # where /home/adefaria is a symlink A:

Then I created a local /web directory and moved stuff there and 
restarted. Now in the error_log I see:

[Wed May 07 12:49:48 2014] [error] (28)No space left on device: Cannot 
create SSLMutex Configuration Failed

My disks are not full. The only reference I see to this is 
http://www.cygwin.com/ml/cygwin/2010-01/msg01017.html which doesn't 
point to an eventual answer. Other googling talks only about Linux 
systems and how to remove semaphores but none of the semaphores are 
owned by the Apache user. Used ipcrm -s <semid> to remove all of them. 
Now Apache starts!
-- 
Andrew DeFaria
http://defaria.com


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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