CGI query - paths and locations

S

Sandem

Hi

I may be missing something but here goes...

I have been asked to move a website from one hoster to another. The
original hoster has CGi scripts enabled on the root of the website, the new
hoster only has them enable on the cgi-bin directory and will not enable in
the root.

My problem is that despite going through the cgi scripts and include files
when the scripts run i.e. index.cgi in the cgi-bin directory the generated
buttons to 'Home' and 'Shop' for instance (index.cgi and shop.cgi) show that
you will be running in the root i.e. www.website.com/index.cgi instead of
www.website.com/cgi-bin/index.cgi

Am I missing something silly?

Yours hopefully

Jonathan
 
G

Gunnar Hjalmarsson

Sandem said:
I have been asked to move a website from one hoster to another.
The original hoster has CGi scripts enabled on the root of the
website, the new hoster only has them enable on the cgi-bin
directory and will not enable in the root.

My problem is that despite going through the cgi scripts and
include files when the scripts run i.e. index.cgi in the cgi-bin
directory the generated buttons to 'Home' and 'Shop' for instance
(index.cgi and shop.cgi) show that you will be running in the root
i.e. www.website.com/index.cgi instead of
www.website.com/cgi-bin/index.cgi

If the scripts are decently designed, you should be able to fix it via
a couple of configuration settings. Otherwise there is more work involved.
Am I missing something silly?

The person who decided to run CGI scripts from the document root,
without knowing that the site would never be moved to another shared
server, sure missed something. It's common practice on shared servers
to only allow CGI scripts in the cgi-bin.

Btw, do you have a Perl question?
 
S

Sandem

Thankyou Gunnar

Yes the original designer was perhaps a little lacking in forward thinking.

As for configuration strings, well I had better start learning!

Catch you later

Jabber
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top