Jump to content

[Solved] Perl Nor Php Can Reach Mysql Db


dcm

Recommended Posts

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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