mod_perl upgrade says "Invalid command '<Perl>'..."

mod_perl upgrade says "Invalid command '<Perl>'..."

Post by Al Pacifi » Sat, 02 Feb 2002 07:20:43



This AM, installed apache 1.3.23 with mod_perl 1.26.

My httpd.conf file generates an error "Invalid command '<Perl>'..." on
startup.

======  Output of httpd -l is as follows: =======
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
suexec: disabled; invalid wrapper ../apache_1.3.23/bin/suexec

=== Perl portion of httpd.conf as follows: ===

blah blah blah...

PerlModule Apache::DBI

<Perl>
use lib "/usr/local/www/site.travelhealthadvice/modules";
</Perl>

PerlModule Travel2::AuthCookieHandler

PerlSetVar      TravelersPath /
PerlSetVar      TravelersLoginScript /travel/interview/login.html
PerlSetVar      AdminstratorsPath /
PerlSetVar      AdminstratorsLoginScript /administer/login.html

PerlRequire /usr/local/www/site.travelhealthadvice/conf/mason.pl
DefaultType text/html

Alias /business /usr/local/www/site.travelhealthadvice/mason/business
<Location /business>
        SetHandler perl-script
        PerlHandler HTML::Mason
</Location>
Alias /travel /usr/local/www/site.travelhealthadvice/mason/travel
<Location /travel>
        SetHandler perl-script
        PerlHandler HTML::Mason
</Location>
<Location /travel/interview>
        AuthType Travel2::AuthCookieHandler
        AuthName Travelers
        PerlAuthenHandler Travel2::AuthCookieHandler->authenticate
        PerlAuthzHandler Travel2::AuthCookieHandler->authorize
        require valid-user
</Location>
Alias /administer /usr/local/www/site.travelhealthadvice/mason/administer
<Location /administer>
        AuthType Travel2::AuthCookieHandler
        AuthName Administrators
        PerlAuthenHandler Travel2::AuthCookieHandler->authenticate
        PerlAuthzHandler Travel2::AuthCookieHandler->authorize
        require valid-user
        SetHandler perl-script
        PerlHandler HTML::Mason
</Location>
Alias /site_admin /usr/local/www/site.travelhealthadvice/mason/site_admin
<Location /site_admin>
        SetHandler perl-script
        PerlHandler HTML::Mason
</Location>
Alias /debug /usr/local/www/site.travelhealthadvice/mason/debug
<Location /debug>
        SetHandler perl-script
        PerlHandler HTML::Mason
</Location>
Alias /javascript /usr/local/www/site.travelhealthadvice/javascript

<Files LOGIN>
        AuthType Travel2::AuthCookieHandler
        AuthName Travelers
        SetHandler perl-script
        PerlHandler     Travel2::AuthCookieHandler->login
</Files>

Any clue as to why? I'm certain I'm starting the same httpd executable
as the one with mod_perl (in any case, the PerlModule directive works
ok, proving this) and this worked fine under my old build.


don't need spam anyway.

Thanks in advance.

 
 
 

1. >>>Compiling 2.0 problem: "asm86: Command not found" <<<

I got this when the compilation enters the final state (compiling the zImage)

as86 -0 -a -o bootsect.o bootsect.s
make[1]: as86: Command not found
make[1]: *** [bootsect.o] Error 127
make[1]: Leaving directory '/usr/src/linux-2.0/arch/i386/boot'
make: *** [zImage] Error 2

Please e-mail (don't post).

Your help is greatly appreciated.

Lawrence

2. Motif Recommendations

3. Why doesn't echo "text" 'command' "more text" work?

4. Any SPARC linux users?

5. Netscape crashing Xnest?

6. return status of commands run in su - <name> -c "<command>"

7. samba problem

8. Apache 1.3.12 on Linux "Invalid command 'Order'" on boot

9. Doing 'r' commands says "requires secure terminal"

10. <font color="blue"><B>kmail</B></font> question

11. <font color="blue"><B>modemblaster</B></font>

12. mod_perl 1.99_5 says "cannot use threaded MPM without ithreads enabled Perl"