• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Perl & MariaDB over Apache or console - installed DBD drivers are different

netdiver

New Pleskian
Server operating system version
Ubuntu 22.04.3 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.56
Hi Folks,

I have a perl script that is running without any problems with MariaDB on Ubuntu from console.
But when I call the script over Apache it fails. (Shebang and content-type is given and not the issue.)

When I call DBI->available_drivers();
on console it returns "DBM,ExampleP,File,Gofer,MariaDB,Mem,Proxy,Sponge".
when called via Apache it says "DBM,ExampleP,File,Gofer,Mem,Proxy,Sponge,mysql".

How or where can I configure this module nightmare?
Somehow it seems perl from console and perl from apache are using differen lib folders?

Greetings from Berlin
 
Additonal information.
Console ist starting Perl 5.038 .. Apache Perl 5.034.
Ok. The question is now, how can I modify the apache perl version or how can I install modules for a specific perl version.
 
Ok, temporary solved ...
Shebang line in perl script changed from #!/usr/bin/perl to #!/usr/local/bin/perl
 
Back
Top