logo       

Problem with Apache::Authen::Program V 0.92 under WinXP: msg#00535

Subject: Problem with Apache::Authen::Program V 0.92 under WinXP
(1) I've patch the source slightly:
--- Program.pm  Sat Mar 29 14:32:24 2003
+++ /perl/site/lib/Apache/Authen/Program.pm     Sat Mar 29 14:43:10
2003
@@ -11,5 +11,5 @@

 use strict;
-use Apache::Constants ':common';
+use Apache::Constants qw(SERVER_ERROR AUTH_REQUIRED OK);
 use File::Temp q(tempfile);

(2) Some other time I'll use these new constants:
http://perl.apache.org/docs/2.0/user/compat/compat.html#Deprecated_Con
stants

(3) startup.pl:
use Apache2 ();
use ModPerl::Util ();
use Apache::RequestRec ();
use Apache::RequestIO ();
use Apache::RequestUtil ();
use Apache::Server ();
use Apache::ServerUtil ();
use Apache::Connection ();
use Apache::Log ();
use Apache::Const -compile => ':common';
use APR::Const -compile => ':common';
use APR::Table ();
use Apache::compat ();
use ModPerl::Registry ();
use CGI ();
#use DBI ();
#use DBD::mysql ();

1;

(4) httpd.conf:
<Directory "C:/Apache2/sweep">
        AuthName "SWEEP Authentication"
        AuthType Basic
        PerlSerVar AuthenProgram "/usr/bin/perl /Apache2/authen/authen.pl"
        PerlSetVar AuthenProgramSuccess Ok
        PerlSetVar AuthenProgramPassword File
        PerlAuthenHandler Apache::Authen::Program
        require valid-user
</Directory>

(5) What happens is that Apache does not start. It stops within 1
second. There is nothing in error.log.

(6) If I comment out 1 line in httpd.conf:
#       PerlSerVar AuthenProgram "/usr/bin/perl /Apache2/authen/authen.pl"
Apache starts.

(7) I've also tried:
        PerlSerVar AuthenProgram "/Apache2/authen/authen.bat"
and
        PerlSerVar AuthenProgram /Apache2/authen/authen.bat
in case quotes or a single token (no spaces) made any difference, but
no. authen.bat is just:
perl /Apache2/authen/authen.pl

--
Cheers
Ron Savage, ron@xxxxxxxxxxxxx on 29/03/2003
http://savage.net.au/index.html





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe