View previous topic :: View next topic |
Author |
Message |
beerslayer -
Joined: 21 Jan 2004 Posts: 15 Location: Northern California, USA
|
Posted: Wed Jan 21, 2004 10:14 pm Post subject: YA5c Error |
|
|
I've just installed Abyss X1 v1.2.2.2 and it seems to be running fine. PHP scripts are executing correctly. However, I cannot get Perl scripts to work. I keep getting the dreaded (and infamous) 500 Server Error.
I have configured Abyss correctly, exactly as stated at http://www.aprelium.com/abyssws/perl.html. My Perl scripts are extremely simple and work just fine from a DOS prompt. I do not use a #! line, since I am led to believe that it is not necessary if I do not set the "Resolve interpreter using the script's #! line" option, which I have not. (But I tried it anyway and it did not make any difference.)
There are no entries whatsoever in the log\cgi.log file. The file is zero-length.
Below is the complete content of this Perl script:
Code: | printf "<HTML>\n";
printf "<HEAD>\n";
printf "<TITLE>My CGI Test Script</TITLE>\n";
printf "</HEAD>\n";
printf "<BODY BGCOLOR=\"#8080ff\">\n";
printf "<H3>This is only a test. Do not adjust your set.</H3>\n";
printf "This is the .pl version of this script.";
printf "</BODY>\n";
printf "</HTML>\n";
|
Other threads in this forum have hinted that there may be additional lines required, but I can't see anything that tells me exactly what those additional lines are.
I'd like to find a solution that does not depend on #!, if possible.
Thanks in advance,
-- Jeff
-- aka The Eternal Newbie :)
p.s. ("5c"="500") |
|
Back to top |
|
|
jtc970 -
Joined: 24 Mar 2003 Posts: 172
|
Posted: Wed Jan 21, 2004 10:41 pm Post subject: |
|
|
printf?
chnage printf's to print
and you need this
print "Content-type:text/html\n\n";
before any other output |
|
Back to top |
|
|
beerslayer -
Joined: 21 Jan 2004 Posts: 15 Location: Northern California, USA
|
Posted: Wed Jan 21, 2004 10:49 pm Post subject: |
|
|
jtc970 wrote: | printf?
chnage printf's to print | Why? I like printf for the extra flexibility and performance isn't an issue. Once I added the line below, it worked fine.
jtc970 wrote: | and you need this
print "Content-type:text/html\n\n";
before any other output | That did the trick. Thanks! |
|
Back to top |
|
|
|