You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Brad Dameron <bd...@tscnet.com> on 2001/10/30 23:54:48 UTC

Apache 1.3.22 and modperl 1.26.

I installed mod perl and php 4 into along with apache 1.3.22. When I add the
following:

<Directory /web/htdocs/freeside>
<Files ~ (\.cgi)>
AddHandler perl-script .cgi
PerlHandler HTML::Mason
</Files>
<Perl>
 require "/var/conf/apache/handler.pl";
</Perl>
</Directory>

and then try to start apache I get this error:

Syntax error on line 338 of /var/conf/apache/httpd.conf:
Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
include
d in the server configuration

Does anyone know what I could of done wrong? It looks to me as though mod
perl is not loading or can not find the perl handler.

If I do a httpd -l it shows:

Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_setenvif.c
  mod_perl.c
  mod_php4.c

So I can see mod perl is installed. I did upgraded to perl version 5.6.1. I
did re-install mod_perl after the upgrade so it knew I was using that
version. The perl executable is in /usr/bin as well as /usr/local/bin.

Any help would be appreciated.


---
Brad Dameron									Network Account Executive
TSCNet Inc.								         	www.tscnet.com
Silverdale, WA.									1-888-8TSCNET




Re: Apache 1.3.22 and modperl 1.26.

Posted by Steve Piner <st...@marketview.co.nz>.

Brad Dameron wrote:

> I installed mod perl and php 4 into along with apache 1.3.22. When I add the
> following:
> 
> <Directory /web/htdocs/freeside>
> <Files ~ (\.cgi)>
> AddHandler perl-script .cgi
> PerlHandler HTML::Mason
> </Files>
> <Perl>
>  require "/var/conf/apache/handler.pl";
> </Perl>
> </Directory>
> 
> and then try to start apache I get this error:
> 
> Syntax error on line 338 of /var/conf/apache/httpd.conf:
> Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
> include
> d in the server configuration
[trimmed]

It sounds to me that when you recompiled mod_perl, you forgot to add
PERL_SECTIONS=1 on the command line.

Steve

-- 
Steve Piner
Web Applications Developer
Marketview Limited
http://www.marketview.co.nz