One Perl 500 fix

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
graham
-


Joined: 04 May 2003
Posts: 1
Location: UK

PostPosted: Sun May 04, 2003 11:21 pm    Post subject: One Perl 500 fix Reply with quote

There are a lot of posts regarding Perl scripts which run directly under the interpreter but give a 500 error when invoked by a browser. I think you will find that many of these problems have nothing to do with AWS but the fact that the browser requires a header return which the interpreter does not.

If all Perl scripts to be run via the browser start

print "Content-type: text/html\n\n";

you could find your problem has gone
Back to top View user's profile Send private message Visit poster's website
owhite
-


Joined: 18 May 2003
Posts: 2
Location: England

PostPosted: Sun May 18, 2003 10:34 pm    Post subject: Re: Perl 500 error Reply with quote

Quote:

If all Perl scripts to be run via the browser start

print "Content-type: text/html\n\n";

you could find your problem has gone


Really useful answer -- can we put this in the main Abyss/CGI/Perl documentation, and in the Abyss F.A.Q. please?
_________________
http://www.blibbleblobble.co.uk/Contact/PGPKey/
Back to top View user's profile Send private message Visit poster's website
goose
-


Joined: 17 Sep 2002
Posts: 608
Location: The Land Of OZ! come here toto!

PostPosted: Mon May 19, 2003 11:55 am    Post subject: Reply with quote

from one graham to another cheers...i new that too.


hahaha :lol:
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Mon May 19, 2003 5:43 pm    Post subject: Re: Perl 500 error Reply with quote

owhite wrote:
Quote:

If all Perl scripts to be run via the browser start

print "Content-type: text/html\n\n";

you could find your problem has gone


Really useful answer -- can we put this in the main Abyss/CGI/Perl documentation, and in the Abyss F.A.Q. please?

By the way, this is not specific to Abyss. This is how all Perl CGIs must be written in order to work on web servers.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
artlara
-


Joined: 20 May 2003
Posts: 1

PostPosted: Tue May 20, 2003 5:18 pm    Post subject: Reply with quote

$use_flock = ?;
# Set to 0 if your server doesn't support file locking,

# 1 for Unix/Linux and WinNT, and 2 for Windows 95/98/ME

find what os you are using, and put the number where the ? is . and your yabb should work fine..
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl 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