YA5c Error

 
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI
View previous topic :: View next topic  
Author Message
beerslayer
-


Joined: 21 Jan 2004
Posts: 15
Location: Northern California, USA

PostPosted: Wed Jan 21, 2004 10:14 pm    Post subject: YA5c Error Reply with quote

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 View user's profile Send private message
jtc970
-


Joined: 24 Mar 2003
Posts: 172

PostPosted: Wed Jan 21, 2004 10:41 pm    Post subject: Reply with quote

printf?
chnage printf's to print
and you need this
print "Content-type:text/html\n\n";
before any other output
Back to top View user's profile Send private message
beerslayer
-


Joined: 21 Jan 2004
Posts: 15
Location: Northern California, USA

PostPosted: Wed Jan 21, 2004 10:49 pm    Post subject: Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> FastCGI/CGI All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group