This error is occurring on my ISPs webserver. It does not occur with the same script on my local machine or our webservers in the office.
To get me started the ISP created the following script :
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "</BODY></HTML>";
this worked fine on all servers. So I ftp'd it back to the local machine and made a minor change to the printed string, tested it on my local machine (fine) and ftp'd it back onto their (unix) server. At this point I get the HTTP 500 error : The page cannot be displayed.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "<H3>No really its fine!</H3>"; # new line here
print "</BODY></HTML>";
I have chmod'ed the script (correctly I think) to 775. Anyway, if the permissions are incorrect I would get : HTTP Error 403 - Forbidden.
Any new script I create gives the HTTP 500 error : The page cannot be displayed.
So I think its a setup issue or a win/unix problem. My ISP is losing patience as they are not supposed to provide CGI support. To rub salt in the wound I have set up my own production webservers at work using Oracle/apache/PL/SQL and had no problems running scripts. I am new to perl however. Please HELP!
To get me started the ISP created the following script :
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "</BODY></HTML>";
this worked fine on all servers. So I ftp'd it back to the local machine and made a minor change to the printed string, tested it on my local machine (fine) and ftp'd it back onto their (unix) server. At this point I get the HTTP 500 error : The page cannot be displayed.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>I just wrote a web page using Perl!</H2>";
print "<H3>No really its fine!</H3>"; # new line here
print "</BODY></HTML>";
I have chmod'ed the script (correctly I think) to 775. Anyway, if the permissions are incorrect I would get : HTTP Error 403 - Forbidden.
Any new script I create gives the HTTP 500 error : The page cannot be displayed.
So I think its a setup issue or a win/unix problem. My ISP is losing patience as they are not supposed to provide CGI support. To rub salt in the wound I have set up my own production webservers at work using Oracle/apache/PL/SQL and had no problems running scripts. I am new to perl however. Please HELP!