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

Error accessing cgi scripts from web

Quote Reply
Error accessing cgi scripts from web
Hi,

I am having difficulty installing links on a unix machine, Ive changed the location of perl and setup all the permissions but when I access the scripts from the web I get a 500 error I can run all the scripts from shell and they give the following output which tells me that the script is installed ok doesnt it?

Quote:


$ ./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.00503

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

Environment Variables
-------------------------------------------
BLOCKSIZE : K
EDITOR : vi
ENV : /hsphere/local/home/system/.shrc
FTP_PASSIVE_MODE : YES
HOME : /hsphere/local/home/system
LOGNAME : system
MAIL : /var/mail/system
OLDPWD : /hsphere/local/home/system/database.webidentity.com.au/admin/data
PAGER : more
PATH : /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/X11R6/bin:/hsphere/local/home/system/bin
PWD : /hsphere/local/home/system/database.webidentity.com.au/admin
SHELL : /bin/sh
SSH_CLIENT : 203.59.101.18 4331 22
SSH_TTY : /dev/ttyp0
TERM : vt100
USER : system

</PRE>$


I have had a look in the error log and this is what it reads

Quote:


[Wed Feb 26 06:03:59 2003] [error] [client 203.14.169.17] Premature end of script headers: /hsphere/local/home/system/database.webidentity.com.au/admin/admin.cgi


Any help would be much appreciated, Ive used links before and it would be perfect for us.

Thanks,

David
Quote Reply
Re: [daveaus] Error accessing cgi scripts from web In reply to
Try a search :)

http://www.gossamer-threads.com/..._username=&mh=50
Quote Reply
Re: [daveaus] Error accessing cgi scripts from web In reply to
Hi,

I did that exact search :) All the permissions look ok putting the full path to links.cfg doesnt make a difference I just cant work out why it gives errors on the web but not shell.

Dave
Quote Reply
Re: [daveaus] Error accessing cgi scripts from web In reply to
Hi Dave,

Please try this would help

From telnet/ssh console

#export REQUEST_MOTHOD=GET or equivelant command

#perl admin.cgi

Cheers,

Cheers,

Dat

Programming and creating plugins and templates
Blog