This question about Configuration: Answered

ModPerlEngineContrib causing Apache startup problems

Hi,

We have two foswiki-installations. Call them foswiki-test and foswiki-productive.
Both are running Foswiki-1.0.6, Sun, 21 Jun 2009, build 4272.
Operating System is Ubuntu 8.04 LTS.
Both systems are quite similar, but not identical.
Trying to speed up foswiki I installed ModPerlEngineContrib, first in foswiki-test.
Installation via apt-get install didn't work, see http://foswiki.org/Tasks/Item8146.
So I had to install the contrib manually, using the attached apache.conf.
This configuration was derived from foswiki-productive.
On foswiki-test ModPerlEngineContrib is working.
On foswiki-productive the "speed-up" foswiki doesn't start, giving this message in apaches error.log (see attachment foswiki-errors.txt):
Foswiki has been configured and "LocalSite.cfg" is available.

Any suggestions?

Thanks

Ron Beezer


Hi Ron,

According to your error.log, the problem is with the /var/lib/foswiki/tools/mod_perl_startup.pl file. Check if it exists on foswiki-productive and if the Foswiki install path is the same as foswiki-test. Check also if the webserver user has permission to read such file.

-- GilmarSantosJr - 12 Aug 2009


Hi Gilmar,

I made the checks:
  • The file /var/lib/foswiki/tools/mod_perl_startup.pl exists on foswiki-productive
  • The apache user www-data:www-data has permission to read the file
  • The Foswiki install path is the same as in foswiki-test (/var/lib/foswiki)
I built two apache.conf files using the ApacheConfigGenerator
  • The CGI-variant works.
  • The mod_perl variant gives the error messages already reported.
Additionally I transferred the LocalSite.cfg from foswiki-test to foswiki-productive. No postive effect.

Then I replaced /var/lib/foswiki/tools/mod_perl_startup.pl (from ModPerlEngineContrib.zip) with the version from the debian foswiki package :
#!/usr/bin/perl

$ENV{MOD_PERL} =~ /mod_perl/ or die "mod_perl_startup called, but mod_perl not used!";
use lib qw( /usr/lib/cgi-bin/foswiki );
require 'setlib.cfg';
1;
Then Apache starts, giving this message in the error.log:
[Fri Aug 14 12:59:58 2009] [notice] Apache/2.2.8 (Ubuntu) mod_apreq2-20051231/2.6.0 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations
Does this mean that Foswiki is working in the desired mode using mod_perl?

Note: installation of foswiki-modperlenginecontrib using apt stops at file /var/lib/foswiki/tools/mod_perl_startup.pl, giving an error message, that this file is also part of the package foswiki

Ron Beezer

Check permissions of LocalSite.cfg in foswiki-productive and try to run configure again. I suspect the problem is some syntax error in LocalSite.cfg or lack of permission.

-- GilmarSantosJr - 24 Nov 2009


According to his logs, it's working just fine. Closing this question, but it might need a follow-up in tasks because mod_perl_startup.pl should NOT be part of the default foswiki package.

-- OlivierRaginel - 11 Dec 2009

QuestionForm edit

Subject Configuration
Extension ModPerlEngineContrib
Version Foswiki 1.0.6
Status Answered
I Attachment Action Size Date Who Comment
apache.confconf apache.conf manage 8 K 12 Aug 2009 - 08:30 RonBeezer  
foswiki-errors.txttxt foswiki-errors.txt manage 2 K 12 Aug 2009 - 08:32 RonBeezer  
Topic revision: r6 - 11 Dec 2009, OlivierRaginel
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy