Forum Moderators: phranque
The html works in the userdir but i cant seem to get the cgibin to work.
ive added
<Directory "/home/*/public_html/cgi-bin/">
Options ExecCGI Multiviews
SetHandler cgi-script
AddHandler .cgi .pl
</Directory>
Im running a small test script which consists of
#!/usr/bin/perl
print "Content-Type: text/html\n\n";
print "It worked!";
but this comes up with the dam 500 error.
the error logs say that it was a premature end of script headers. if i remove the "SetHandler cgi-script" it either displays the files contents or asks me to save the file. the script runs ok in terminal.
The file test file was uploaded in ascii and all the file and directory permissions are set correct, as far as i am aware anyway... ~userdir 711, public_html 711, cgi-bin 755, test.pl 755.
Anyone any ideas what else i can try?
Thanks in advance
bart