delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/05/06/16:24:25

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:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=uqR
9LRDn2+ZoGa3diqvfGAaUrycbb/+50w6lB/u/k+gHR8FNU9XuK0zR2NvG+57vXD0
PEwn0yNgj/hXgciZibbnxMMFnEPJl/PEid+2dV6+/bFW98quyQQKUVprh7sP0hAj
s41euvd9/Oq3fgvI4mQXurlqDYtrYNxjLy65rz+c=
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:mime-version
:content-type:content-transfer-encoding; s=default; bh=Et726HK8s
uY+IzXANSF4kveWt6g=; b=f3jz/MCrNHHGXglLSammrgEn+5/j3+kVebiE2Gqho
yHIKQC2rYEFpbIb0FZ+7fl9pxsFJ7jIrDuHeQyamcpSr0TVjCZX1oDMnD++NuNo7
gXLonIvVeyBRJ496dCSDxFwQEXM82PeWJOkw2wgoV7S5mwfrtiMFQm77M65Y03m7
tk=
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.9 required=5.0 tests=AWL,BAYES_00,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: Setting up Apache2 with mod_perl and Apache2::AuthCookieLDAP
Date: Tue, 06 May 2014 10:35:13 -0700
Lines: 93
Message-ID: <lkb6gh$qgr$1@ger.gmane.org>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0
X-IsSubscribed: yes

Forgive me if this is double posted. I posted yesterday after a long 
hiatus of posting anything to the Cygwin Mailing list and it didn't seem 
to show up so I'm trying again. If anybody sees this then a quick email 
to adefaria AT audience DOT com saying you saw it would clear that up.

I've been working mainly on Linux boxes and haven't had to dig in to 
Cygwin deeply for a while. But I have a question or two again. I could 
just switch to a Linux server but I figured I'd try my Windows laptop first.

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.

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.

More help is available by typing NET HELPMSG 3534.

Adefaria-lt:

Second problem: Perl CGI scripts do not execute but just display even 
though AddHandler is configured in Apache:

Adefaria-lt:grep -i 'addhandler cgi-script' /etc/apache2/httpd.conf
     AddHandler cgi-script .cgi .pl
Adefaria-lt:cat ~/web/test.pl
#!/usr/bin/perl

print "Content-type: text/html\n\n";
print <<HTML;
<html>
<head>
<title>A Simple Perl CGI</title>
</head>
<body>
<h1>A Simple Perl CGI</h1>
<p>Hello World</p>
</body>
HTML
exit;
Adefaria-lt:

When I go to test.pl it just gets printed as the web page. Note that PHP 
is working and if I go to phpinfo.php it works just fine...

Third problem: mod_perl2 doesn't seem to want to install:

Running install for module 'mod_perl2'
Running make for P/PH/PHRED/mod_perl-2.0.8.tar.gz
Checksum for 
/home/adefaria/.cpan/sources/authors/id/P/PH/PHRED/mod_perl-2.0.8.tar.gz ok
Catching error: "Couldn't move 
/cygdrive/a/.cpan/build/tmp-156520/mod_perl-2.0.8/src to 
/home/adefaria/.cpan/build/mod_perl-2.0.8-zKWTRp/src: Is a directory at 
/usr/lib/perl5/5.14/CPAN/Distribution.pm line 
528.\cJ\cICPAN::Distribution::run_preps_on_packagedir(CPAN::Distribution=HASH(0x60aa40ad8)) 
called at /usr/lib/perl5/5.14/CPAN/Distribution.pm line 
355\cJ\cICPAN::Distribution::get(CPAN::Distribution=HASH(0x60aa40ad8)) 
called at /usr/lib/perl5/5.14/CPAN/Distribution.pm line 
1760\cJ\cICPAN::Distribution::make(CPAN::Distribution=HASH(0x60aa40ad8)) 
called at /usr/lib/perl5/5.14/CPAN/Distribution.pm line 
3088\cJ\cICPAN::Distribution::test(CPAN::Distribution=HASH(0x60aa40ad8)) 
called at /usr/lib/perl5/5.14/CPAN/Distribution.pm line 
3480\cJ\cICPAN::Distribution::install(CPAN::Distribution=HASH(0x60aa40ad8)) 
called at /usr/lib/perl5/5.14/CPAN/Module.pm line 479\cJ\cIeval {...} 
called at /usr/lib/perl5/5.14/CPAN/Module.pm line 
478\cJ\cICPAN::Module::rematein(CPAN::Module=HASH(0x607f96780), 
\"install\") called at /usr/lib/perl5/5.14/CPAN/Module.pm line 
578\cJ\cICPAN::Module::install(CPAN::Module=HASH(0x607f96780)) called at 
/usr/lib/perl5/5.14/CPAN/Shell.pm line 
1797\cJ\cICPAN::Shell::rematein(\"CPAN::Shell\", \"install\", 
\"Apache2::AuthCookie\") called at /usr/lib/perl5/5.14/CPAN/Shell.pm 
line 1977\cJ\cICPAN::Shell::__ANON__(\"CPAN::Shell\", 
\"Apache2::AuthCookie\") called at /usr/lib/perl5/5.14/CPAN.pm line 
376\cJ\cIeval {...} called at /usr/lib/perl5/5.14/CPAN.pm line 
373\cJ\cICPAN::shell() called at /usr/lib/perl5/5.14/App/Cpan.pm line 
338\cJ\cIApp::Cpan::_process_options(\"App::Cpan\") called at 
/usr/lib/perl5/5.14/App/Cpan.pm line 
421\cJ\cIApp::Cpan::run(\"App::Cpan\") called at /bin/cpan line 12\cJ" 
at /usr/lib/perl5/5.14/CPAN.pm line 392.
         CPAN::shell() called at /usr/lib/perl5/5.14/App/Cpan.pm line 338
         App::Cpan::_process_options("App::Cpan") called at 
/usr/lib/perl5/5.14/App/Cpan.pm line 421
         App::Cpan::run("App::Cpan") called at /bin/cpan line 12


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