You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Al Morgan <al...@microsharp.com> on 2001/04/24 07:22:50 UTC

Directive Undefined

At least two people responded to my last message telling me that they
didn't like Slash much; it was a horrible piece of code.  Are you
refering to it as a general piece of Perl code, or how it deals with
mod_perl?  If the latter, where I can find some good code to look it?

Also, Apache can't recognize the <Perl> directive; it gives me the
following error:

Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
included in the server configuration

mod_perl.c seems to be installed.  'httpd -l' shows it listed at the
bottom.  I've added the directive 'AddModule mod_perl.c' to httpd.conf,
and it doesn't throw an error, so I know /something/ is being loaded,
but the <Perl> directive still doesn't work.

Am I missing something?

Thanks,

        Al Morgan [ almorgan@pdxlinux.org ]

Re: Directive Undefined

Posted by Stas Bekman <st...@stason.org>.
> At least two people responded to my last message telling me that they
> didn't like Slash much; it was a horrible piece of code.  Are you
> refering to it as a general piece of Perl code, or how it deals with
> mod_perl?  If the latter, where I can find some good code to look it?

Once you do something not very cleanly people will remember for a long
time. I didn't check the latest versions of it, I suppose it's much much
better now. It's rewritten by different people too.

> Also, Apache can't recognize the <Perl> directive; it gives me the
> following error:
>
> Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
> included in the server configuration

Please read the documentation before posting. e.g. see:
http://perl.apache.org/guide/config.html#Enabling

> mod_perl.c seems to be installed.  'httpd -l' shows it listed at the
> bottom.  I've added the directive 'AddModule mod_perl.c' to httpd.conf,
> and it doesn't throw an error, so I know /something/ is being loaded,
> but the <Perl> directive still doesn't work.
>
> Am I missing something?

see above

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/