I am trying to get my web server to execute cgi-scripts. I'm starting off using this small script listed below. I put the script in the /var/ directory.
#!/usr/bin/perl
#
print "Content-type: text/html\n\n";
print "Hello World\n";
I have done a 'chmod +x /var/ to test it
I ran >perl -c test.cgi
syntax fine
Then >perl - w test.cgi
Hello World
Command line >perl myscript.cgi works fine
But running I keep getting internal error 505
Would there be something missing or mis-configured in my httpd conf file.
These are a few sections from my httpd.conf
//
ScriptAlias /cgi-bin/ "/var/
<Directory "/var/AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
# Virtual host mydomain.com
<VirtualHost x.x.x.x>
DocumentRoot /home/mydomain/www/
ServerName ServerSignature email
</VirtualHost>
#!/usr/bin/perl
#
print "Content-type: text/html\n\n";
print "Hello World\n";
I have done a 'chmod +x /var/ to test it
I ran >perl -c test.cgi
syntax fine
Then >perl - w test.cgi
Hello World
Command line >perl myscript.cgi works fine
But running I keep getting internal error 505
Would there be something missing or mis-configured in my httpd conf file.
These are a few sections from my httpd.conf
//
ScriptAlias /cgi-bin/ "/var/
<Directory "/var/AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
AddHandler cgi-script .cgi
# Virtual host mydomain.com
<VirtualHost x.x.x.x>
DocumentRoot /home/mydomain/www/
ServerName ServerSignature email
</VirtualHost>