Stas Bekman wrote:
Evert Meulie wrote:
Hi everyone!
When trying to start Apache I get: Syntax error on line 376 of /usr/local/apache-freeside/conf/Apache-Freeside.conf: Perl not allowed here
The relevant paragraph from Apache-Freeside.conf:
PerlModule HTML::Mason
<Directory /usr/local/apache/htdocs/freeside-mason>
<Files ~ (\.cgi)>
AddHandler perl-script .cgi
PerlHandler HTML::Mason
</Files>
<Perl>
require "/usr/local/etc/freeside/handler.pl";
</Perl>
</Directory>
(the 'require' line is 376).
This paragraph I've cut/pasted from: http://www.sisd.com/freeside/docs/install.html
My apache version is: Apache/2.0.50 (Unix) mod_perl/1.99_14 Perl/v5.8.4 DAV/2
Is there anyone out there who can enlighten me? I'm lost... :-/
Evert, just take:
> <Perl> > require "/usr/local/etc/freeside/handler.pl"; > </Perl>
out of the <directory> container and it will work.
Philippe, has the allowed placement of <Perl> sections changed in mp2?
For now, <Perl> sections are still limited to server scope. I have a patch to open that up to OR_ALL (<Location> .htaccess and all) but I am not sure of exactly what behaviour a user would expect from a <Perl> section in a <Location > container. For example
<Location /foo> <Perl> $Global::SomeVar = 'foo'; </Perl> </Location>
<Location /bar> <Perl> $Global::SomeVar = 'bar'; </Perl> </Location>
Would certainly _not_ behave like people might expect. See what I mean ?
-- -------------------------------------------------------------------------------- Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5 http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature