?
Solved

cgi script not work, copy of letter pasted below

Posted on 1998-12-29
2
Medium Priority
?
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 7

Accepted Solution

by:
HalldorG earned 150 total points
ID: 1830319
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
ID: 1830320
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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
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…
Suggested Courses

752 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