[rt-users] Telling a web site to user Perl 5.8
josh
josh at saratoga.lib.ny.us
Tue Dec 2 21:55:42 EST 2003
On Tue, Dec 02, 2003 at 04:14:38PM -0500, Vivek Khera wrote:
> >>>>> "j" == josh <josh at saratoga.lib.ny.us> writes:
>
> j> I thought I was using fastcgi - and not mod perl. I get an error about
>
> Oh. then why are you needing to restart your web server?
Actually that was perceptive of you. I had included one of the lines I
should have commented out. I kept commenting out various line until I
could restart the web server. But I kept getting error like this that
are looking at the wrong instance of perl:
Can't locate Locale/Maketext.pm in @INC (@INC contains:
/usr/local/rt3/local/lib /usr/local/rt3/lib /usr/sausalito/perl
/usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0
/usr/lib/perl5/site_perl/5.6.0/i386-linux
/usr/lib/perl5/site_perl/5.6.0
/usr/lib/perl5/site_perl/5.005/i386-linux
/usr/lib/perl5/site_perl/5.005 /usr/lib/perl5/site_perl . /etc/httpd/
/etc/httpd/lib/perl) at /usr/local/rt3/lib/RT/I18N.pm line 33.
BEGIN failed--compilation aborted at /usr/local/rt3/lib/RT/I18N.pm
line 33.
Compilation failed in require at /usr/local/rt3/lib/RT.pm line 29.
BEGIN failed--compilation aborted at /usr/local/rt3/lib/RT.pm line 29.
Compilation failed in require at /usr/local/rt3/bin/webmux.pl line 38.
BEGIN failed--compilation aborted at /usr/local/rt3/bin/webmux.pl line
38.
Compilation failed in require at (eval 10) line 1.
>
> j> something not be found in @INC after searchign all the 5.6 libraries,
> j> but all the scripts I know of have been built to use 5.8.
>
> make sure the process running the script has permissions to read that
> file.
>
> specifically what is not found would be helpful (unless I missed it
> earlier).
The virtual host part (in a separate file) is included below:
# owned by VirtualHost
NameVirtualHost 208.20.128.198
# FrontPage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
Port 80
ServerRoot /etc/httpd
ResourceConfig /etc/httpd/conf/srm.conf
AccessConfig /etc/httpd/conf/access.conf
<VirtualHost 208.20.128.198>
ServerName support.sspl.org
ServerAlias www.support.sspl.org
ServerAdmin admin
#DocumentRoot /home/.sites/28/site1/web
DocumentRoot /usr/local/rt3/share/html
AddDefaultCharset UTF-8
#Just about any line starting with Perl will crash the server.
# # these four lines apply to Apache2+mod_perl2 only: {{{
# PerlSetVar MasonArgsMethod CGI
# PerlModule Apache2 Apache::compat
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^208.20.128.198(:80)?$
RewriteCond %{HTTP_HOST} !^support.sspl.org(:80)?$ [NC]
RewriteRule ^/(.*) http://support.sspl.org/$1 [L,R]
# RewriteRule ^(.*)/$ $1/index.html
# RewriteOptions inherit
#AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/28/site1/users/$1/web/$3
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
#Either of these lines are enough to crahs the server as well
#PerlModule Apache::DBI
#PerlRequire /usr/local/rt3/bin/webmux.pl
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>
# FrontPage needs the following block in order to be able to use SSL on
# this virtual host. Note: If this block occurs below the Port80
# block, then the automatic Perl configuration in ../httpd.conf fails.
<IfDefine FrontPageSSLRequirements>
Port 443
<VirtualHost 208.20.128.198:443>
ServerName support.sspl.org
#DocumentRoot /home/.sites/28/site1/web
DocumentRoot /opt/rt3/share/html
SSLEngine on
</VirtualHost>
</IfDefine>
# end of VirtualHost owned section
--
Josh Kuperman
josh at saratoga.lib.ny.us
More information about the rt-users
mailing list