Solved

cgi script not work, copy of letter pasted below

Posted on 1998-12-29
2
198 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

914 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

22 Experts available now in Live!

Get 1:1 Help Now