Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-15-2002 16:30:56

hale3031
Member
Registered: 05-15-2002
Posts: 2

New Install~Editing the CGI Scripts

I am a little new so please bare with me. My site is on a linux server. When I edit the Cp-app.cgi file I am confused as to what I should be editing. This is what I get when I open it up using word:

n"; print "
Script Execution Error
The following server paths are not correct:

n"; if (!(-e)) {print "Server Script Path ($server_script_path variable)
n";} if (!(-e "$server_data_path")) {print "Server Data Path ($server_data_path variable)
n";} if (!(-e "$server_images_path")) {print "Server Images Path ($server_images_path variable)
n";} print "

Do I edit both places where it say's Server Sript Path? my

My hosting site says this: If a script calls another file within your account, but the script does NOT require a URL, you need to use the system path. Instead of using the absolute path to your home directory ("/www26/web/someid"), you should instead use the DOCUMENT_ROOT environment variable ($ENV{DOCUMENT_ROOT} in Perl) to determine the path of your files or programs within a script.

These are the changes I have made so far in my cp-upload.cgi

$server_script_path =$ENV{DOCUMENT_ROOT/cgi;
$server_data_path =$ENV{DOCUMENT_ROOT /data;
$server_images_path =$ENV{DOCUMENT_ROOT /images;

$url_script_path = "http://www.h2-solutions.com/cgi-bin";
$url_images_path = "http://www.h2-solutions.com/images";


Can you please tell me if this looks right.

I am very confused and frustraded.... any help or advise is greatly appreciated.

Thanks so much.

Offline

 

#2 05-16-2002 14:48:10

hale3031
Member
Registered: 05-15-2002
Posts: 2

Re: New Install~Editing the CGI Scripts

Thank God I finally figured it out!!! It only took me days. Now I'm actually getting to play with the setup...wish me luck.

Thank you,

Offline

 

#3 05-17-2002 10:18:17

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 20009
Website

Re: New Install~Editing the CGI Scripts

Good Luck.  Try editing with notepad next time.


Nick Hendler

Offline

 

Board footer