Gossamer Forum
Home : Products : Links 2.0 : Discussions :

500 Internal Server Error , please help.

Quote Reply
500 Internal Server Error , please help.
could someone please help me. I am having problem running admin.cgi on telnet as well as on the web browser.
On the web browser it say "500 Internal Server Error"

On telnet, it says this:

% ./admin.cgi
Content-type: text/html

<PRE>

CGI ERROR
==========================================
Error Message : You cant run this script from telnet/shell.
Script Location : ./admin.cgi
Perl Version : 5.00302

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
BLOCKSIZE : 1k
EDITOR : vi
EXINIT : set autoindent
HOME : /web/home/web792b2
LC_CTYPE : ISO8859-1
LESSCHARSET : latin1
LINEMODE : real
LOGNAME : web792b2
MAILPATH : /var/mail/web792b2
PAGER : more
PATH : /web/home/web792b2/bin:/bin:/usr/bin:/usr/X11/bin:/usr/con
trib/bin:/usr/contrib/mh/bin:/usr/games:/usr/local/bin
PWD : /web/home/web792b2/website/cgi-bin/admin
RNINIT : /web/home/web792b2/.rninit
SHELL : /bin/csh
TERM : vt100
TERMCAP : vt100|dec-vt100|vt100-am|vt100am:do=^J:co#80:li#24:cl=50\E
[;H\E[2J:sf=2*\ED:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:ce=3\E[K:cd=50\E
[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:
is=\E[1;24r\E[24;1H:if=/usr/share/tabset/vt100:rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[
?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:ho=\E[H:k1=\
EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
USER : web792b2
WWW_HOME : http://www.bsdi.com/welcome.html
XAPPLRESDIR : /web/home/web792b2/app-defaults/Class/
mail : /var/mail/web792b2

</PRE>%

Check:
http://www.pngnetsearch.com/cgi-bin/admin/
to look at configuration.

I hope someone can help me!
thanks in advance
Quote Reply
Re: 500 Internal Server Error , please help. In reply to
First of all, it is best to save cgi files as text files so that people can see the codes and help you debug them. Smile Just a helpful suggestion.

Did you make any changes to your admin.cgi file? If so, what were they?

Also, to have the correct path for perl in the first line of the admin.cgi file?

Regards.

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: 500 Internal Server Error , please help. In reply to
The second error is absolutely correct. You cannot run admin.cgi from telnet/shell under any circumstances.

The 500 error message is usually caused by something silly such as a typo, wrong path to perl, one of the "required" scripts is not uploaded in ASCII, or some other reason. They are usually hard to track down.