Solved

cgi script not work, copy of letter pasted below

Posted on 1998-12-29
2
197 Views
Last Modified: 2013-12-25

Below is a copy of the email I sent to the site where I got this script. I hope you can figure out the question from it,
if not send me a email.



Subject:
            could you check my free for all link files, I cant get them to work
       Date:
            Tue, 29 Dec 1998 22:00:12 -0500
       From:
            John Hewett <johnh619@mail.idt.net>
Organization:
            self
         To:
            mattw@worldwidemart.com


http://thor.prohosting.com/~john314/links.html
and
http://thor.prohosting.com/~john314/linkscgi.txt
The txt file is really my cgi file, I renamed it so you could look
at it. I do have it uploaded to the cgi-bin directory also.
I did chmod and the html file is set to 777 and the cgi file is
set to 755. Also I tried to get it working using the pl extension
instead of the cgi also and it did not work. So that leaves the
file paths in the cgi file and the file path in the html file. I did
enter them as I thought you meant; could you check them all. I really
spent a lot of time on it and no luck. So I tried the simplest situation
in which I only changed the minimum to get it to work, meaning I left
the categories exactly like I found them; so I figured this would
work but no luck. Prohosting is the only free web space host that
allowed any bodies cgi programs. Below is the paragraph in an email
they sent me. It looks like it is okay to use any bodies cgi scripts
according to this. Of course I uploaded to thor.prohosting.com/
/usr/home/~john314/html which is not where they come out at after
uploading. If you want to go over to free.prohosting.com and read
what they say I still think it indicates that I can use any ones
cgi scripts.

CGI

Put your cgi scripts in the html/cgi-bin directory.  Your directory is
located in /usr/home/yourusername.  If you are having problems with your
CGI scripts, make sure you upload them in ASCII format, not binary, set
the permissions correctly(usually chmod a+rx or chmod 755)...

Also I found this:

CGI STUFF

perl - /usr/bin/perl
date - /bin/date
Check the FAQ at http://www.prohosting.com/cgi_faq.html if you have
problems.  Its meant for our virtual
hosting clients, but the same ideas apply to your free account.

I changed the usr/bin/perl statement at the top of the cgi file like
it said. I uploaded in ASCII mode like it said and still I can not get
it working.

Sincerely John Hewett
0
Comment
Question by:johnh619
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 50 total points
Comment Utility
I suggest you do not access teh filename as /links.txt
but rather as "$ENV{'DOCUMENT_ROOT')/links.txt"

as you hardly have access to the root file system
0
 

Author Comment

by:johnh619
Comment Utility
HalldorG, I am not completely certain that I understand. Where
is the file having the extension .txt. Are you referring to the
one I made of the cgi file? Can you be a bit more explicit?
Thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now