I'm a verteran CGIer but a new mod-perl user. I have got the mod-perl running fine for the content handling. But when I try to step in to other stages like Authentication, and have trouble in setting PerlAccessHandler PerlAuthenHandler etc.
If I put ###====================== <Location /mpl/hello> SetHandler perl-script PerlHandler Apache::Hello </Location> ###====================== in the perl.conf file, it's ok. I got the expected from the browser. But when I changed above to ###====================== PerlModule Apache::AuthAnon <Location /mpl/hello> AuthName Anonymous AuthType Basic PerlAuthenHandler Apache::AuthAnon require valid-user PerlSetVar Anonymous anonymous|anybody SetHandler perl-script PerlHandler Apache::Hello </Location> ###====================== and try to restart the server, I got Syntax error on line 9 of /usr/local/apache/conf/perl.conf: Invalid command 'PerlAuthenHandler', perhaps mis-spelled or defined by a module not included in the server configuration When I set up .htaccess in a directory "test" under DocumentRoot, ###====================== PerlAccessHandler Apache::GateKeeper PerlSetVar Gate closed ###====================== and try to access this directory, the server gives the "Internal Error": /usr/local/apache/htdocs/test/.htaccess: Invalid command 'PerlAccessHandler', perhaps mis-spelled or defined by a module not included in the server configuration I can add "use Apache::GateKeeper ();" in the startup.pl and start the server without problem, so the module itself should be in the proper path for tyhe server to load. Any help on this will be apprieciated. Harry GreatLodge.com