Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Links2 problem driving me nuts...

Quote Reply
Links2 problem driving me nuts...
Can someone please help me? I am very frustrated.

I have uploaded all the files in ACSII mode, read the readme.txt and the FAQ, pointed to the correct Perl 5.04 and sendmail location, and the permissions are set as follows:

cgi-bin/links [dir=755, files=644]
cgi-bin/links/admin [dir=755, files=***]
cgi-bin/links/admin/backup [dir=777, files=666]
cgi-bin/links/admin/data [dir=755, files=666]
cgi-bin/links/admin/data/hits [dir=777, files=666]
cgi-bin/links/admin/data/rates [dir=777, files=666]
cgi-bin/links/admin/Html [dir=755, files=644]
cgi-bin/links/admin/Lwp [dir=755, files=644]
cgi-bin/links/admin/Lwp/Parallel [dir=755, files=644]
cgi-bin/links/admin/Lwp/Parallel/Protocol [dir=755, files=644]
cgi-bin/links/admin/templates [dir=755, files=666]
htdocs/links [dir=777]

But when I run cgi-bin/links/admin/admin.cgi in the browser, I get a stupid 500 Internal Server Error?! I then run admin.cgi in telnet, and I get the following message:

Content-type: text/html

<PRE>

CGI ERROR
==========================================
Error Message : You cant run this script from telnet/shell.
Script Location : /sites/freesources.com/cgi-bin/links/add.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
HOME : /usr/local/etc/httpd/sites/freesources.com
HZ : 100
LOGNAME : withheld
MAIL : /var/mail/sources
PATH : /usr/bin:
PWD : /usr/local/etc/httpd/sites/freesources.com
SHELL : /bin/csh
TERM : vt100
TZ : US/Eastern
USER : withheld
_INIT_PREV_LEVEL : S
_INIT_RUN_LEVEL : 3
_INIT_RUN_NPREV : 0
_INIT_UTS_ISA : sparc
_INIT_UTS_MACHINE : sun4u
_INIT_UTS_NODENAME : whsun615
_INIT_UTS_PLATFORM : SUNW,UltraSPARC-IIi-Engine
_INIT_UTS_RELEASE : 5.7
_INIT_UTS_SYSNAME : SunOS
_INIT_UTS_VERSION : Generic

</PRE>

Do you know what might be wrong? I can post the entire links.cfg if you think that would be helpful.

Actually, I have one idea. I see that most of you guys have the Links scripts and the actual HTML files in the same directory. My server, however, forces me to put all scripts in the CGI-BIN. So my scripts and HTML pages are in separate, "parallel" directories. My scripts are in /sites/freesources.com/cgi-bin/links while my pages are in /sites/freesources.com/htdocs/links. Is that a problem? I have installed a script before that would not work because of this.

Thank you very much. This is really driving me up the wall...

Terence

P.S. The URL is http://www.freesources.com/cgi-bin/links/admin/...
Quote Reply
Re: Links2 problem driving me nuts... In reply to
 
Quote:
But when I run cgi-bin/links/admin/admin.cgi in the browser, I get a stupid 500 Internal Server Error?!
... (snipped) ...
CGI ERROR
==========================================
Error Message : You cant run this script from telnet/shell.
Script Location : /sites/freesources.com/cgi-bin/links/add.cgi
Perl Version : 5.00404

If you are running admin.cgi, why would you get an error for add.cgi?

Regardless, admin.cgi cannot be run from telnet because it brings up a frames-based html document.

It sounds like the top lines of the script may not be pointing to the correct location for perl or they may not be pointing to the correct version of perl. If that is not the case and, since you do have telnet capability, see if you can view your server's error log and see what it is saying about those 500 Infernal ... er... Internal Server Error. If you have a "premature end of script headers" message, look at the error line just above it and see if it contains anything that might relate to the problem.

I hope this helps.