Jump to content

[Solved] Perl Nor Php Can Reach Mysql Db


Recommended Posts

Posted

Hi,

When I try to use Perl DBI of php Adminer script (such as DBI_available_drivers.pl), I get only universal "500 Internal Server Error" page. It tells "More information about this error may be available in the server error log", but where is the log? No Perl error is sent in the output. Perl DBI and DBD's are claimed as installed. It seems some server permissions should be set to allow Perl to work with DB. Please could you fix it?

Regards

dcm

Posted

Please post the following information:

  • Your cPanel username
  • Your main domain
  • The server that you are on
  • Sample script that causes error (with passwords edited out)

Posted

Hi Krydos,

 

Pars go like this:

cPanel username: dcm

Domain: dcm.helionet.org

Server: stevie

Script: /scripts/perl/DBI_available_drivers.pl

 

The script was enclosed in the initiation mail but as I can see no attach option here goes the script:

 

#! usr/bin/perl

 

use strict;

use warnings;

 

print "Content-type:text/html\n\n";

 

eval { require DBI };

if ($@) { # check for eval error

die "$@ <br>\n" ;

}

else {

my @ary = DBI->available_drivers();

print "\n<br>==== <b>Available DBI drivers:</b>\n<br>";

if (@ary) {

print join("\n<br>", @ary), "\n<br>";

}

else {

print "\n<br>No DBI drivers available <br>\n";

}

}

 

Regards

dcm

 

Posted

Hi,

While the mentioned particular script is still not working, probably due to imposed restrictions on free hosting, all other Perl scripts I use as "administrative" checks work fine. So I am closing the case.

dcm

Guest
This topic is now closed to further replies.
×
×
  • Create New...