• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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