This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Setting up Apache2 with mod_perl and Apache2::AuthCookieLDAP

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 

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.


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/

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

When I go to 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/ line 
called at /usr/lib/perl5/5.14/CPAN/ line 
called at /usr/lib/perl5/5.14/CPAN/ line 
called at /usr/lib/perl5/5.14/CPAN/ line 
called at /usr/lib/perl5/5.14/CPAN/ line 
called at /usr/lib/perl5/5.14/CPAN/ line 479\cJ\cIeval {...} 
called at /usr/lib/perl5/5.14/CPAN/ line 
\"install\") called at /usr/lib/perl5/5.14/CPAN/ line 
578\cJ\cICPAN::Module::install(CPAN::Module=HASH(0x607f96780)) called at 
/usr/lib/perl5/5.14/CPAN/ line 
1797\cJ\cICPAN::Shell::rematein(\"CPAN::Shell\", \"install\", 
\"Apache2::AuthCookie\") called at /usr/lib/perl5/5.14/CPAN/ 
line 1977\cJ\cICPAN::Shell::__ANON__(\"CPAN::Shell\", 
\"Apache2::AuthCookie\") called at /usr/lib/perl5/5.14/ line 
376\cJ\cIeval {...} called at /usr/lib/perl5/5.14/ line 
373\cJ\cICPAN::shell() called at /usr/lib/perl5/5.14/App/ line 
338\cJ\cIApp::Cpan::_process_options(\"App::Cpan\") called at 
/usr/lib/perl5/5.14/App/ line 
421\cJ\cIApp::Cpan::run(\"App::Cpan\") called at /bin/cpan line 12\cJ" 
at /usr/lib/perl5/5.14/ line 392.
         CPAN::shell() called at /usr/lib/perl5/5.14/App/ line 338
         App::Cpan::_process_options("App::Cpan") called at 
/usr/lib/perl5/5.14/App/ line 421
         App::Cpan::run("App::Cpan") called at /bin/cpan line 12

Andrew DeFaria
Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]