dcm Posted February 17, 2014 Posted February 17, 2014 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?Regardsdcm
Krydos Posted February 17, 2014 Posted February 17, 2014 Please post the following information:Your cPanel usernameYour main domainThe server that you are onSample script that causes error (with passwords edited out)
dcm Posted February 17, 2014 Author Posted February 17, 2014 Hi Krydos, Pars go like this:cPanel username: dcm Domain: dcm.helionet.org Server: stevieScript: /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"; }} Regardsdcm
Ice IT Support Posted February 17, 2014 Posted February 17, 2014 Try setting your file permissions to 755 (executable) on the perl files.
dcm Posted February 20, 2014 Author Posted February 20, 2014 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
Recommended Posts