Configuration errors

Hello,

I have some troubles with the configuration.
I installed apache, mysql, mod_perl and perl.
Installation of all this went fine!
When i start apache i get this in my log:

[Tue Aug 31 09:45:43 2004] [notice] Apache/2.0.50 (Unix)
mod_perl/1.99_16 Perl/v5.8.5 PHP/4.3.6 configured – resuming normal
operations

So this means that apache is working fine & configured with perl but
there still is a problem with the perl modules.

When i enable a module like
PerlModule Apache::DBI
Then i get in my apache log:

[Tue Aug 31 09:47:59 2004] [error] Can’t locate Apache/DBI.pm in @INC
(@INC contains: /usr/local/lib/perl5/5.8.5/i686-linux
/usr/local/lib/perl5/5.8.5 make make make . /usr/local/apache2/
/usr/local/apache2/lib/perl) at (eval 2) line 3.\n [Tue Aug 31 09:47:59
2004] [error] Can’t load Perl module Apache::DBI for server
10.51.10.30:0, exiting…

The file dbi.pm is on my harddisk in these dirs:
/usr/local/share/perl/5.8.3/Apache/DBI.pm
/usr/local/share/perl/5.8.3/Apache/Session/Store/DBI.pm
/usr/local/lib/perl/5.8.3/DBI.pm
/usr/local/lib/perl/5.8.3/Bundle/DBI.pm
/root/.cpan/build/DBI-1.43/lib/Bundle/DBI.pm
/root/.cpan/build/DBI-1.43/DBI.pm
/root/.cpan/build/DBI-1.43/blib/lib/DBI.pm
/root/.cpan/build/DBI-1.43/blib/lib/Bundle/DBI.pm
/root/.cpan/build/Apache-DBI-0.94/DBI.pm
/root/.cpan/build/Apache-DBI-0.94/blib/lib/Apache/DBI.pm
/root/.cpan/build/Apache-Session-1.6/Session/Store/DBI.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DBI.p
m

How can i correct this so that apache knows where to find the files ?
And i also see “…for server 10.51.10.30:0” but that “0” is not
correct, where do i have to change that ?

Grtz and thnx for helping!
Phil.

Your new perl 5.8.5 doesn’t use old perl path(5.8.3). It’s OK if you
don’t share libdirs between perl versions and also IMHO it’s recomended
setup.

You can install all required modules with CPAN shell:
perl5.8.5 -e shell -MCPAN

Or run autobundle command with old perl:
perl5.8.3 -e autobundle -MCPAN

and then install it with new version of perl.

Philippe Dhont (Sea-ro) wrote:

Hello,

I have some troubles with the configuration.
I installed apache, mysql, mod_perl and perl.
Installation of all this went fine!
When i start apache i get this in my log:

[Tue Aug 31 09:45:43 2004] [notice] Apache/2.0.50 (Unix)
mod_perl/1.99_16 Perl/v5.8.5 PHP/4.3.6 configured – resuming normal
operations

So this means that apache is working fine & configured with perl but
there still is a problem with the perl modules.

When i enable a module like
PerlModule Apache::DBI
Then i get in my apache log:

[Tue Aug 31 09:47:59 2004] [error] Can’t locate Apache/DBI.pm in @INC
(@INC contains: /usr/local/lib/perl5/5.8.5/i686-linux
/usr/local/lib/perl5/5.8.5 make make make . /usr/local/apache2/
/usr/local/apache2/lib/perl) at (eval 2) line 3.\n
[Tue Aug 31 09:47:59 2004] [error] Can’t load Perl module Apache::DBI
for server 10.51.10.30:0, exiting…

The file dbi.pm is on my harddisk in these dirs:
/usr/local/share/perl/5.8.3/Apache/DBI.pm
/usr/local/share/perl/5.8.3/Apache/Session/Store/DBI.pm
/usr/local/lib/perl/5.8.3/DBI.pm
/usr/local/lib/perl/5.8.3/Bundle/DBI.pm
/root/.cpan/build/DBI-1.43/lib/Bundle/DBI.pm
/root/.cpan/build/DBI-1.43/DBI.pm
/root/.cpan/build/DBI-1.43/blib/lib/DBI.pm
/root/.cpan/build/DBI-1.43/blib/lib/Bundle/DBI.pm
/root/.cpan/build/Apache-DBI-0.94/DBI.pm
/root/.cpan/build/Apache-DBI-0.94/blib/lib/Apache/DBI.pm
/root/.cpan/build/Apache-Session-1.6/Session/Store/DBI.pm
/root/.cpan/build/Apache-Session-1.6/blib/lib/Apache/Session/Store/DBI.p
m

How can i correct this so that apache knows where to find the files ?
And i also see “…for server 10.51.10.30:0” but that “0” is not
correct, where do i have to change that ?

Grtz and thnx for helping!
Phil.