View previous topic :: View next topic |
Author |
Message |
adamtheo Tux's lil' helper
Joined: 03 Sep 2002 Posts: 123 Location: Tallahassee, Florida USA
|
Posted: Wed Oct 08, 2003 4:38 am Post subject: Apache2, mod_perl 1.99_09, and TWiki |
|
|
Hello, all. I understand mod_perl support in apache2 is unstable, but I've resolved to try it anyway. At the very least I can help debug it. I have successfully got apache 2.0.47 working. I can visit static pages, and I can visit CGI-generated pages (my local setup of TWiki, to be exact), although the CGI is very slow. I have tried to set up mod_perl 1.99_09.
When I run Apache2 with mod_perl2 (1.99 to be exact) loaded into the server (using the LoadModule directive), but not configured to run TWiki's scripts, everything works fine, although slowly.
I have been trying to configure the apache2's config files to use mod_perl2, but always run into errors no matter what I try. I've read the many pages on the issue here on twiki.org, but none have helped or made any sense to me. I'm hoping this forum can help now.
When I try to access the view script, I get an error 500 and have the following in apache2's error_log:
Code: |
[Mon Oct 06 00:30:14 2003] [error] 2540: ModPerl::PerlRun: Can't locate Apache.pm in @INC
(@INC contains: /site/theoretic/lib . /site/theoretic/lib /site/theoretic/www/bin
/usr/lib/perl5/vendor_perl/5.8.0/i586-linux/Apache2 /usr/lib/perl5/5.8.0/i586-linux
/usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i586-linux
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i586-linux /usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl . /etc/apache2/ /etc/apache2/lib/perl) at
/usr/lib/perl5/5.8.0/CGI.pm line 161.
Compilation failed in require at /site/theoretic/www/bin/view line 28.
BEGIN failed--compilation aborted at /site/theoretic/www/bin/view line 28.
|
When I access the testenv script (http://new.theoretic.com/bin/testenv), I get the following output:
Code: |
Perl Module(s) missing
Warning: Essential module CGI not installed - please check your Perl installation, including the setting of @INC, and re-install Perl if necessary.
@INC setting:
../lib
/site/theoretic/lib
/site/theoretic/www/bin
/usr/lib/perl5/vendor_perl/5.8.0/i586-linux/Apache2
/usr/lib/perl5/5.8.0/i586-linux
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i586-linux
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i586-linux
/usr/lib/perl5/vendor_perl/5.8.0
/usr/lib/perl5/vendor_perl
.
/etc/apache2/
/etc/apache2/lib/perl
|
and it produces the following output in apache2's error_log:
Code: |
[Mon Oct 06 00:28:10 2003] [notice] Apache/2.0.47 (Gentoo/Linux) mod_perl/1.99_09
Perl/v5.8.0 mod_ssl/2.0.47 OpenSSL/0.9.6k configured -- resuming normal operations
Variable "$brokenTWikiCfg" will not stay shared at /site/theoretic/www/bin/testenv line 165.
[Mon Oct 06 00:30:14 2003] [warn] -T switch is ignored, enable with 'PerlSwitches -T' in
httpd.conf
|
I have created an apache conf file called "theoretic.conf" which is included by apache2.conf just like commonapache2.conf is. It serves to split all domain-specific functions for ease of maintenance for me.
Code: |
ScriptAlias /bin/ /site/theoretic/www/bin/
Alias /icons/ "/site/theoretic/icons/"
Alias / "/site/theoretic/www/"
PerlModule Apache2::ModPerl::Registry
<Directory "/site/theoretic/www/bin">
Options +ExecCGI FollowSymLinks -Indexes
Order allow,deny
Allow from all
SetHandler perl-script
PerlSendHeader On
PerlResponseHandler ModPerl::PerlRun
<Files ~ "[^/]*\.html$">
SetHandler none
allow from all
</Files>
<Files "viewauth">
require valid-user
</Files>
<Files "edit">
require valid-user
</Files>
<Files "preview">
require valid-user
</Files>
<Files "save">
require valid-user
</Files>
<Files "attach">
require valid-user
</Files>
<Files "upload">
require valid-user
</Files>
<Files "rename">
require valid-user
</Files>
<Files "rdiffauth">
require valid-user
</Files>
<Files "manage">
require valid-user
</Files>
<Files "installpasswd">
require valid-user
</Files>
<Files "*">
allow from all
SetHandler perl-script
</Files>
</Directory>
<Directory "/site/theoretic/www">
Options FollowSymLinks +IncludesNOEXEC
AllowOverride None
# Order allow,deny
Allow from all
</Directory>
<Directory "/site/theoretic/data">
deny from all
</Directory>
<Directory "/site/theoretic/templates">
deny from all
</Directory>
<Directory /site/theoretic/icons>
Options -Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
|
I'm trying to wrap my head around this, but Google isn't able to turn up anything I can understand, it seems. _________________ * Theoretic Solutions "The Internet's Open Think-Tank" - http://www.theoretic.com |
|
Back to top |
|
|
adamtheo Tux's lil' helper
Joined: 03 Sep 2002 Posts: 123 Location: Tallahassee, Florida USA
|
Posted: Thu Oct 09, 2003 6:08 am Post subject: update |
|
|
just edited the above post for updates, and bumping hoping someone knows of a solution. _________________ * Theoretic Solutions "The Internet's Open Think-Tank" - http://www.theoretic.com |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|