Gossamer Forum
Quote Reply
Mod Perl
Hi,

My new server has ensim control panel which comes configured with mod perl. Every site on server acts in a chrooted environment.

I have so far failed to activate modperl for GMail. My admin.cgi lies in path /home/virtual/site2/fst/var/www/cgi-bin/admin21 and url is sitename/cgi-bin/admin21/admin.cgi and sitename/cgi-bin/user/login.cgi.

Here is what I have in httpd.conf (I added section bewteen ####):

<<<<<<<<<

<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>

####

<Location /cgi-bin/admin21>
SetHandler perl-script
PerlHandler Apache::Registry
PerlSendHeader On
Options +ExecCGI
</Location>



#######

</IfModule>

The mod perl startup file had the following content:

<<<<<<<

<IfModule mod_perl.c>
Alias /perl /home/virtual/site2/fst/var/www/perl
<Directory /home/virtual/site2/fst/var/www/perl>
Allow from All
AllowOverride All
Order allow,deny
Options +ExecCGI
</Directory>
SetEnv SITE_PERL /home/virtual/site2/fst/var/www/perl
</IfModule>

>>>>>>>>>



To which I added:

#########

<IfModule mod_perl.c>
<Directory /home/virtual/site2/fst/var/www/cgi-bin/admin21>
use lib '/home/virtual/site2/fst/var/www/cgi-bin/admin21';
use GMail::mod_perl;
</Directory>
</IfModule>

#########

But then apache fails to restart:

<<<<<<<<

Syntax error on line 14 of /etc/httpd/conf/site2/mod_perl:
Invalid command 'use', perhaps mis-spelled or defined by a module not included in the server configuration

>>>>>>>>>>>

If I comment out the 2 lines that start with use, then apache starts again.

Any idea what I am doing wrong?

Thanks

Frank
Subject Author Views Date
Thread Mod Perl frankLo 3395 Nov 24, 2002, 4:45 PM
Post Re: [frankLo] Mod Perl
Alex 3311 Nov 25, 2002, 4:53 PM
Thread Re: [frankLo] Mod Perl
frankLo 3278 Nov 30, 2002, 11:36 AM
Post Re: [frankLo] Mod Perl
waynexu 3255 Dec 2, 2002, 9:12 PM