freighte
05-12-2007, 09:22 AM
Hey everyone,
I'm trying to move a site to Bluehost and I'm unable to get any of the cgi scripts to work. The test script I am trying to execute is a simple “Hello World” script from the following page which can be found here:
http://69.89.31.62/~freighte/frx1.htm
The link is titled “Local Rates” - “Cargo Vans” and the underlying reference is:
<A HREF="http://69.89.31.62/~freighte/cgi-bin/hello.pl">
"hello.pl" consists of the following 4 lines:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html\n\n";
print "Hello World!\n";
There do not appear to be any extra spaces on any lines nor are there any lines below “Hello World” in the Perl script. The calling file's (frx1.htm) permissions are 644, the cgi-bin folder and all files within it, including "hello.pl", have a permission of 755.
When I click the link, I get the following error in FireFox:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
URL: http://69.89.31.62/~freighte/cgi-bin/hello.pl
The server error logs then show the following entries (they were blank before I clicked the link):
Main Error Log
failed to open log file
fopen: Permission denied
[Sat May 12 09:10:57 2007] [error] [client 67.175.137.128] Premature end of script headers: /home/freighte/public_html/cgi-bin/hello.pl
SUEXEC error_log
[2007-05-12 09:19:57]: info: (target/actual) uid: (freighte/freighte) gid: (freighte/freighte) cmd: hello.pl
I don't know what I could be doing wrong here. Does anyone have any ideas?
Thank you for your help everyone!
Ray
I'm trying to move a site to Bluehost and I'm unable to get any of the cgi scripts to work. The test script I am trying to execute is a simple “Hello World” script from the following page which can be found here:
http://69.89.31.62/~freighte/frx1.htm
The link is titled “Local Rates” - “Cargo Vans” and the underlying reference is:
<A HREF="http://69.89.31.62/~freighte/cgi-bin/hello.pl">
"hello.pl" consists of the following 4 lines:
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
print "Content-type: text/html\n\n";
print "Hello World!\n";
There do not appear to be any extra spaces on any lines nor are there any lines below “Hello World” in the Perl script. The calling file's (frx1.htm) permissions are 644, the cgi-bin folder and all files within it, including "hello.pl", have a permission of 755.
When I click the link, I get the following error in FireFox:
500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again.
URL: http://69.89.31.62/~freighte/cgi-bin/hello.pl
The server error logs then show the following entries (they were blank before I clicked the link):
Main Error Log
failed to open log file
fopen: Permission denied
[Sat May 12 09:10:57 2007] [error] [client 67.175.137.128] Premature end of script headers: /home/freighte/public_html/cgi-bin/hello.pl
SUEXEC error_log
[2007-05-12 09:19:57]: info: (target/actual) uid: (freighte/freighte) gid: (freighte/freighte) cmd: hello.pl
I don't know what I could be doing wrong here. Does anyone have any ideas?
Thank you for your help everyone!
Ray