Hi,
I have mod_perl 2 (mod_perl 2.0.2-5.1.i386) installed with fedora5's
add/remove software tool and also apache 2 and perl 5.8.8. I have a
problem that I couldn't found anything about it on the web. I hope that
somebody here can help me with this.
I get an error while I try to execute a perl script on my webserver.
This script runs ok without being launched from the server. The error is:
[error] \n------------- EXCEPTION: Bio::Root::Exception
-------------\nMSG: Can't locate Apache/SubProcess.pm in @INC (....)\n
BEGIN failed--compilation aborted at (eval 47) line
2.\n\nApache::SubProcess module required for running under
mod_perl\nSTACK: Error::throw\nSTACK: Bio::Root::Root::throw ...
The configuration of httpd.conf is the following (regarding to mod_perl):
LoadModule perl_module modules/mod_perl.so
Alias /perl-cgi/ "/usr/local/apache2/perl-cgi/"
PerlSwitches -wT
PerlPostConfigRequire /usr/local/apache2/perl-cgi/startup.perl
<Directory "/usr/local/apache2/perl-cgi">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlOptions +ParseHeaders
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
And the startup.perl file is the following,
#!/usr/bin/perl -w
#file:startup.pl
#---------------
use strict;
# to use other libraries in other @INC path
# use lib qw(/usr/local/apache2/perl-cgi/);
# preload all mp2 modules
# use ModPerl::MethodLookup;
# ModPerl::MethodLookup::preload_all_modules();
use ModPerl::Util (); #for CORE::GLOBAL::exit
use Apache2::RequestRec ();
use Apache2::RequestIO ();
use Apache2::RequestUtil ();
use Apache2::SubProcess ();
use Apache2::ServerRec ();
use Apache2::ServerUtil ();
use Apache2::Connection ();
use Apache2::Log ();
use APR::Table ();
use ModPerl::Registry ();
use Apache2::Const -compile => ':common';
use APR::Const -compile => ':common';
# load perl modules
use CGI();
# load bioperl modules
use Bio::Seq();
use Bio::SeqIO();
use Bio::DB::EMBL();
1;
How can I solve this?? Thanks very much for your help in advance.
Regards,
Alicia