FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > FutureQuest Site Owners (All may read - Only Site Owners May Respond) > Server FAQ
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 12-19-1998, 01:36 PM   Postid: 38020
Deb
FutureQuest, Inc.
 
Deb's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
Defining Mysterious Script Errors

Quote:
All the browser tells me is "500 Internal Error"! I need more info then that, is there a way I can get a more specific error message?
There are two ways. They do not ALWAYS offer more info, but many times they do, as such they are worth the time to try.

1. View your script error logs located in your /logs_cgi/ directory.

2. Telnet into your account. Type:

cd /big/dom/xdomain/cgi-bin/ {Enter}
(or the path to the directory where your script is)

ls {Enter}
(this will show you a list of everything in that directory)

perl -cw scriptname.pl {Enter}
(this is a kewl little script that will let you know if the syntax of your script is ok... if not it will usually point out exactly where the syntax is flawed and suggest a fix for it)

Enjoy!

------------------
Unlocking the Power of the Internet!
www.FutureQuest.net


Deb is offline   Reply With Quote
Old 03-12-1999, 02:24 AM   Postid: 38021
Deb
FutureQuest, Inc.
 
Deb's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
Here's another good URL for CGI Troubleshooting Tips http://webreview.com/wr/pub/98/07/31/perl/index.html

Check it out

Deb
Deb is offline   Reply With Quote
Old 03-12-1999, 10:14 PM   Postid: 38022
ChrisH
Registered User

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Jan 1999
Location: Long Island, New York
Posts: 75

Nice, but, why doesn't it show you how to
set the environment variables so you
can run from the command line. This is
the best debugging, I think, and you can
even run the script in the perl debugger
if you like. Hmmm, what I really
_should_ do is write a CGI that takes
its arguments and writes a shell script to
set those arguments somehow (either
environment for GET or a file for POST),
then call itself. Then you just swap this
script in for the bad script, hit it once,
then go to the command line and run the
regular cgi via the automatically
generated script. Hey, that might actually
be worth doing!

Or, if you have something written
with CGI.pm, check this:

http://stein.cshl.org/WWW/software/CGI/#debugging


ch
ChrisH is offline   Reply With Quote
Old 03-12-1999, 10:38 PM   Postid: 38023
 Terra
CTO FutureQuest, Inc.
 
Terra's Avatar
 
Join Date: Jun 1998
Location: Z'ha'dum
Posts: 8,108
It all depends if the script uses GET or POST methods...

What I normally do is either use the CGI.pm library for the POST style scripts...

If it is GET style, I will write a subroutine call around the beginning of the file that dumps the environment to a file... I then convert that file to a bash script and tweak the variables for exactly how I want them, then the last line would call the script via 'perl -d script.pl'...

Debugging CGI scripts is an artform that requires time and patience to acquire... There is no easy way to duplicate the same environment that Apache runs the script in, versus your manual debugging invocation - but you can get mighty close...

I had the unfortunate task of learning all about CGI debugging the **hard** way, mostly by trial and error... I still have nightmares of a particularly heavy duty message forum that I worked on for a long time... (Deb, you listening???) :p

--
Terra
sysAdmin
FutureQuest
Terra is offline   Reply With Quote
Old 03-13-1999, 01:19 AM   Postid: 38024
hearts
Registered User
 
hearts's Avatar

Forum Notability:
0 pts:
[Post Feedback]
 
Join Date: Dec 1998
Location: An isolated town in Georgia
Posts: 901
Terra............. i got a question.

when telnetting in, and using this info here that deb posted, or i suppose with any other task, when using the telnet that is with windows, the window is only so huge, cannot maximize its height, and what you see in that window, how do you see the info that is set forth that is above?

trying to simplify this question? HOW DO YOU SCROLL UP.. no scroll bar and the info after the command is greater than the window allows.

Is there a setting somewhere that can help with this? Or is this some kind of punishment for using the program that is from windows?
hearts is offline   Reply With Quote
Old 03-13-1999, 01:27 AM   Postid: 38025
Deb
FutureQuest, Inc.
 
Deb's Avatar

Forum Notability:
0 pts: Even-handed
[Post Feedback]
 
Join Date: Jun 1998
Location: Franktown Colorado
Posts: 6,781
The HELP in Window's Telnet is short and sweet ... it contains your answer though

From the help file:
Quote:
To set how many lines can be saved in the buffer

On the Terminal menu, click Preferences.
In Buffer Size, type a number between 25 and 399.

Notes

The buffer is a block of memory where the lines are stored so you can scroll up and down in the text displayed by the terminal.
If you specify more lines than will fit in available memory, Telnet sets the buffer to the largest number of lines that available memory can hold. If you specify fewer than 25 lines, Telnet reserves 25 lines
That should cover it

Deb
Deb is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:24 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.