On Sun, 18 Sep 2005 14:16:36 +0800
Manish Rai Jain <[EMAIL PROTECTED]> wrote:

> Hi
> I am having problems while trying to configure perl module with
> apache.  I am attaching my httpd.conf file. Please check out the
> section  *************************************
> # Added by Manish to list index
> <Directory "/usr/local/apache2/htdocs/testing">
> Options +Indexes
> </Directory>
> 
> # PerlModule Apache::Registry
> <Directory "/usr/local/apache2/htdocs/perl">
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options ExecCGI
> PerlSendHeader On
> allow from all
> </Directory>
> ***********************************
> Whenever I try to run the server, it just doesn't run. But, when I
> remove  the above section; the server runs fine; but can't execute the
> perl scripts.  My mod_perl.so is properly installed in modules
> directory and is being  identified also by apache. 
> Any ideas what's going wrong?

  It appears that you're running Apache 2.0 and mod_perl 2.x, if that is
  the case you need to have it be: 

  PerlHandler ModPerl::Registry 

  not

  PerlHandler Apache::Registry 

  See this URL in the docs for more information: 

http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Registry___C_Apache__PerlRun__and_Friends

  If that doesn't solve your problem please send any errors you find in
  your error_log. 

 ---------------------------------
   Frank Wiles <[EMAIL PROTECTED]>
   http://www.wiles.org
 ---------------------------------

Reply via email to