I am creating a website mainly in PHP but i have a few perl scripts i want to run. I am running a simple script but get this error a Internal Server Error 500 the apache error.log file says:
[Fri Dec 14 14:59:52 2007] [error] [client 10.1.1.5] (2)No such file or directory: exec of '/var/www/cgi-bin/test.cgi' failed
[Fri Dec 14 14:59:52 2007] [error] [client 10.1.1.5] Premature end of script headers: test.cgi
this is the script
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/perl
- print "Content-type: text/html\n\n";
- print "<html><body><h1>Hello World</h1></body></html>\n";
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/php5-cgi
- <?php
- header("Content-type: text/html");
- echo "Hello, World.";
- exit;
- ?>
Thanks Scott.