Internal Server Error using perl script

jimkirk

New member
for some reason i can't access my perl script at http://forum.jedd.info/cgi-bin/jeff.cgi

Code:
#!/usr/bin/perl
use strict;

print "Content-type: text/plain\n\n";
print "huh";
the file permissions are set at 755 and it's in my cgi-bin folder. i have no clue what's causing this as the scripts so simple it should work
 

fouadChk

Member
jimkirk said:
for some reason i can't access my perl script at http://forum.jedd.info/cgi-bin/jeff.cgi

Code:
#!/usr/bin/perl
use strict;

print "Content-type: text/plain\n\n";
print "huh";
the file permissions are set at 755 and it's in my cgi-bin folder. i have no clue what's causing this as the scripts so simple it should work

It seems that it's suexec that is the cause. If you've looked at your error_log you would have seen this beautiful error entry:
Code:
........[cgi:error] [pid 746782] [client ----IP----:13850] AH01215: suexec policy violation: see suexec log for more details:.............

As users we don't have access to suexec's log, I tried few ideas but without success. The server uses mod_fcgid (FastCGI handler to load/run PHP/Perl etc..) and mod_suexec (to set permissions under which those processes run.)

Not sure why, in the case of Perl, suexec triggers those nasty 500.