DeveloperSide.NET Forums
August 03, 2020, 09:55:37 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
   Home   Help Search Login Register  
Pages: [1]
Author Topic: Apache::DBI error  (Read 6489 times)
0 Members and 1 Guest are viewing this topic.
Posts: 1

View Profile
« on: January 05, 2007, 03:58:43 PM »

Hi there,

I'm trying to port an app from Apache 1 to v2, using mod_perl, perl, soap, etc.  There were several perl modules missing which I installed successfully using cpan.  When I try to start apache (on Redhat ES 4) using 'service httpd start' it comes up with the following error:

[root@dappmain ~]# service httpd start
Starting httpd: [Fri Jan 05 15:59:16 2007] [warn] PassEnv variable ORACLE_HOME was undefined
[Fri Jan 05 15:59:16 2007] [warn] PassEnv variable LD_LIBRARY_PATH was undefined
[Fri Jan 05 15:59:16 2007] [warn] PassEnv variable TNS_ADMIN was undefined
[Fri Jan 05 15:59:16 2007] [error] Can't locate object method "setPingTimeOut" via package "Apache::DBI" at /etc/fmnp/httpd/ line 45.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Jan 05 15:59:16 2007] [error] Can't load Perl file: /etc/fmnp/httpd/ for server localhost:0, exiting...

I'm not concerned with the warnings.
My httpd.conf reads:
PerlModule ModPerl::Registry
PerlModule Apache::DBI
PerlRequire /etc/fmnp/httpd/

My reads:
my $PingTime = 30;
my $ReconTime = 26000;
Apache::DBI->setPingTimeOut("DBI:Oracle:pppp", $PingTime);
... (where ppp is the db name)

INC contains all the regular libraries under perl5, 5.8.5/, site_perl/, vendor_perl/.  In trying to discover more I have already moved DBI from the vendor_perl folders but to no avail.  I've also forced a cpan reinstall of Apache::DBI and DBD::CSV which test and install correctly.  The following perl/cpan modules were installed after a RedHat install of Apache and perl:

install Apache::DBI
install SOAP::Lite
install XML::Simple
install Benchmark::Timer
install Net::EasyTCP
install Time::HiRes
install Log::Log4perl
install DBD::CSV
install Config::IniFiles
install Module::Signature
install ExtUtils::ParseXS
install version
install Pod::Readme
install Log::Dispatch::File
install Date::Manip

I've tried to find a module called setPingTime but it's not there.  Can anyone help, it's a little urgent at this stage.  If you need more info please request it.

very much appreciated if anyone can point me in the right direction,
Pages: [1]
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!