You are viewing a plain text version of this content. The canonical link for it is here.
Posted to asp@perl.apache.org by Kareem Hamdy <th...@yahoo.com> on 2003/05/16 07:39:32 UTC

PerlModule not allowed here

I installed mod_perl..

I have XP, Apache2, Perl5.8, etc


When I put this in my httpd.conf file



<Files ~ (\.asp)>    
   SetHandler  perl-script
   PerlModule  Apache::ASP
   PerlHandler Apache::ASP
   PerlSetVar  Global .
   PerlSetVar  StateDir /tmp/asp
 </Files>


E:\apache web server\Apache2\bin>apache -k restart
Syntax error on line 1082 of E:/apache web 
server/Apache2/conf/httpd.conf:
PerlModule not allowed here



1080 <Files ~ (\.asp)>    
1081    SetHandler  perl-script
1082    PerlModule  Apache::ASP
1083    PerlHandler Apache::ASP
1084    PerlSetVar  Global .
1085    PerlSetVar  StateDir /tmp/asp
1086  </Files>


It doesn't like that PerlModule..

I've been going nuts..

can someone help me..

Thanks

Kareem

p.s.

I'm a newbie.. so please use layman's terms..

thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: PerlModule not allowed here

Posted by Josh Chamas <jo...@chamas.com>.
Kareem Hamdy wrote:
> I installed mod_perl..
> 
> I have XP, Apache2, Perl5.8, etc
> 
> 
> When I put this in my httpd.conf file
> 
> 
> 
> <Files ~ (\.asp)>    
>    SetHandler  perl-script
>    PerlModule  Apache::ASP
>    PerlHandler Apache::ASP
>    PerlSetVar  Global .
>    PerlSetVar  StateDir /tmp/asp
>  </Files>
> 
> 
> E:\apache web server\Apache2\bin>apache -k restart
> Syntax error on line 1082 of E:/apache web 
> server/Apache2/conf/httpd.conf:
> PerlModule not allowed here
> 

Sorry about this, I didn't realize you couldn't put PerlModule
config in a <Files> section.  I'll update the docs for the next
release.

Regards,

Josh

________________________________________________________________
Josh Chamas, Founder                   phone:925-552-0128
Chamas Enterprises Inc.                http://www.chamas.com
NodeWorks Link Checking                http://www.nodeworks.com


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org


Re: PerlModule not allowed here

Posted by Randy Kobes <ra...@theoryx5.uwinnipeg.ca>.
On Fri, 16 May 2003, Kareem Hamdy wrote:

> I installed mod_perl..
> I have XP, Apache2, Perl5.8, etc
> When I put this in my httpd.conf file
> <Files ~ (\.asp)>    
>    SetHandler  perl-script
>    PerlModule  Apache::ASP
>    PerlHandler Apache::ASP
>    PerlSetVar  Global .
>    PerlSetVar  StateDir /tmp/asp
>  </Files>
> 
> E:\apache web server\Apache2\bin>apache -k restart
> Syntax error on line 1082 of E:/apache web 
> server/Apache2/conf/httpd.conf:
> PerlModule not allowed here

This means that the "PerlModule Apache::ASP" directive shouldn't
be within the <Files></Files> block. Try moving it just before
the "<Files ~ (\.asp)>" line.

-- 
best regards,
randy kobes


---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe@perl.apache.org
For additional commands, e-mail: asp-help@perl.apache.org