Now this was *really* weird.
I fixed the DBD::mysql problem by adding '/usr/lib64/perl5/vendor_perl’ to my
‘use’ statement in startup.pl, EVEN THOUGH it’s already in @INC, and DBD::mysql
lives in /usr/local/lib64/perl5/DBD
DBI lives in that directory, but other scripts using DBI and DBD::Oracle
Yes I have that set, and my PerlRequire file is pretty minimal:
#!/usr/bin/perl
use lib qw(/usr/lib64/perl5 /usr/share/perl5 /usr/local/lib64/perl5
/home/allwebfiles/perl/LocalModules /usr/lib64/perl5/vendor_perl/Bundle);
use CGI ();
use PharmApps::CleanCGI ();
CGI->compile(':all');
use DBI ();
u
This MIGHT be the problem...
If you have some lines like this in your Apache httpd.conf
PerlModule mod_perl2
PerlRequire/path/to/my/conf/files/apache.pl
And the file /path/to/my/conf/files/apache.pl should look something like
#!/usr/bin/perl
use ModPerl::Util ();
use Apache2::Reque
I’m migrating a bunch of old cgi web apps to a new server (CentOS8) and running
them under mod_perl.
one of them uses the DBD::mysql driver and when running under mod_perl only I
get the strange error:
[Tue Jun 02 10:29:32.289698 2020] [:error] [pid 3729:tid 140210163652352]
DBD::mysql initial