You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Shawn Olson <sh...@bobcats.net> on 2000/02/21 01:06:18 UTC

Newbie Question

I have installed Apache 1.3.11 and HTML::Mason 0.8 on my server.  I am
trying to configure Apache's httpd.conf for Mason.  I have added the
following lines to httpd.conf:

        PerlRequire /usr/local/mason/handler.pl

        Alias /mason /usr/local/www/htdocs
        <Location /mason>
            SetHandler perl-script
            PerlHandler HTML::Mason
        </Location>

When I try to restart Apache, I get the following error (after running
apachectl configtest):

Syntax error  on Line 717 of /usr/local/apache/conf/httpd.conf:
Invalid command  'PerlRequire' , perhaps misspelled or defined by a
module not included in server configuration.

Any suggestions?  I am at a loss as to what to do.

Shawn Olson


Re: Newbie Question

Posted by "Eric L. Brine" <EL...@iname.com>.
> Syntax error  on Line 717 of /usr/local/apache/conf/httpd.conf:
> Invalid command  'PerlRequire' , perhaps misspelled or defined by a
> module not included in server configuration.

If I'm not mistaken, that's a sign that mod_perl is not installed or not
installed properly. Read the guide on how to check if mod_perl is running,
and reinstall mod_perl if it isn't.

--
Eric L. Brine  |  Chicken: The egg's way of making more eggs.
ELB@iname.com  |  Do you always hit the nail on the thumb?
ICQ# 4629314   |  An optimist thinks thorn bushes have roses.

Re: Newbie Question

Posted by Stas Bekman <sb...@iname.com>.
> I have installed Apache 1.3.11 and HTML::Mason 0.8 on my server.  I am
> trying to configure Apache's httpd.conf for Mason.  I have added the
> following lines to httpd.conf:
> 
>         PerlRequire /usr/local/mason/handler.pl
> 
>         Alias /mason /usr/local/www/htdocs
>         <Location /mason>
>             SetHandler perl-script
>             PerlHandler HTML::Mason
>         </Location>
> 
> When I try to restart Apache, I get the following error (after running
> apachectl configtest):
> 
> Syntax error  on Line 717 of /usr/local/apache/conf/httpd.conf:
> Invalid command  'PerlRequire' , perhaps misspelled or defined by a
> module not included in server configuration.
> 
> Any suggestions?  I am at a loss as to what to do.

You didn't install mod_perl!
http://perl.apache.org/guide/install.html#How_can_I_tell_whether_mod_perl_


_______________________________________________________________________
Stas Bekman    mailto:sbekman@iname.com      http://www.stason.org/stas
Perl,CGI,Apache,Linux,Web,Java,PC     http://www.stason.org/stas/TULARC
perl.apache.org    modperl.sourcegarden.org   perlmonth.com    perl.org
single o-> + single o-+ = singlesheaven    http://www.singlesheaven.com