I am not able to execute any of the .cgi files in the cgi-bin folder. I can execute .pl files in the “cgi-bin” folder but not .cgi files, not even a super simple .cgi file.
Apache2 log error message:
(13)Permission denied: exec of '/usr/lib/cgi-bin/test.cgi' failed Premature end of script headers: test.cgi
I read through this tutorial: http://httpd.apache.org/docs/2.2/how...html#errorlogs
Windows Azure VM with Root Access
Ubuntu Server 12.04 with desktop installed
Perl is installed here: /usr/bin/perl
Apache2 is installed
PHP5 is installed
There is no suexec in the /usr/lib/apache2 folder which is where this command says that apache looks for the file:
Permissions on /usr/lib/cgi-bin are 755
Apache VirtualHost file:
Portion of apache2.conf
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
Simple .cgi test file that does not work. test.cgi
AddHandler cgi-script .cgi .pl
<Files ~ "\.pl$">
<Files ~ "\.cgi$">
I have even tried Ubuntu with XAMPP and the .cgi scripts still will not work.
print "Content-type: text/html\n\n";
print "<html><body><h1>Hello World</h1></body></html>\n";
Please let me know how to fix this.