Good day!
I have an issue where I receive “Internal Server Error” when running perl scripts in the browser.
Here’s an example script that works OK when running from the Cygwin Terminal:
#!/usr/local/bin/perl
use DBI;
my @ary = DBI->available_drivers();
print @ary;
print "Content-type:text/html\n\n";
print "<html><head><title>My First Script</title></head>\n\n";
print "<body>\n";
print "<p>Hello from <b>mpl.pl</b></p>\n";
print "</body></html>";
But that same script fails in the web browser. Here's the last error in /var/log/httpd/error_log
AH01215: Can't locate loadable object for module DBI in @INC
DBI.pm is in at least 2 of the locations listed in @INC
$ ll /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/DBI.pm
-rwxr-xr-x 1 svc_dpa_sql Domain Users 318199 Nov 17 10:18 /usr/local/lib/perl5/site_perl/5.32/x86_64-cygwin-threads/DBI.pm*
I want to post httpd.conf here, but I feel it will make the post too large, so I can send later if it helps.
Where would you look next?
Thanks so much!