[ back to toc ]

cgi scripts outside the cgi-bin

Date: 2002/03/02 19:41

I appreciate your making yourself available!
My question is: I just acquired a dedicated server and moved all of my
sites there. I was having trouble with my whois search and my bible
search. These scripts work within their own folders and produce results
from those folders. The techs tell me that no script outside the cgi-bin
will work on these servers. I placed my scripts inside the bin, and one
of them worked, the bible search, however the results are blank. Can you
give me a clue how to make these kinds of scripts work correctly, either
from their folders or from the cgi-bin? or can you guide me to the
correct documentation on this dilemma? I appreciate any help you can give
I could find your whois search page, but not the bible search. However the
issue should essentially be the same.

Your site was on another server where the CGI scripts and the static pages
were in the same directory. This is convenient for most cases but poses
some security risks that I do not have time to detail here. Now your site
is on a server, which is set up different. You have to store all static
HTML and GIF file in some directories and all executable CGI files in
other directories.

This, of course, makes life harder, because you have to more carefully
care the relative URL references and many times you have to maintain the
path to the scripts and from the script output to the static pages.

Summarizing: you have to put the whois.cgi from directory /whois to
/cgi-bin and should alter

$prevpage = "whois.shtml";


$prevpage = "/whois/whois.shtml";


[ back to toc ]