[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path/Data directory??



----- Original Message ----- 
From: <SandridgeFarm@aol.com>
To: <ringlinklist@gunnar.cc>
Sent: Wednesday, August 23, 2000 16:20
Subject: [ringlinklist] Path/Data directory??
> 
> Hi!
> 
>    I've uploaded the ringlink files ( http://ringlink.netfirms.com/ring.html )
> When I click on Add new ring I go to newring.pl,
> but when I click on Add new site I get:
>  "Can't open /www/htdocs/ringlink/cgi-bin/ringlink/data
> No such file or directory"
This message indicates that your rlconfig $datapath variable is not correctly 
set.  You must set it to the full server path to your data directory.  They do 
not tell you what that is, but these entries should work:
$datapath="$ENV{'DOCUMENT_ROOT'}/cgi-bin/ringlink/data";
$cgipath="$ENV{'DOCUMENT_ROOT'}/cgi-bin/ringlink";
$sendmail="/usr/lib/sendmail";
Note that I am using doublequotes so that they will not conflict with the 
single quotes already in use.  The configuration that appears in rlconfig.pm is 
set to match Gunnar's server.  Every server is uniquely configured.  You have 
to change each variable to match your servers configuration.
> In the Readme:
> 
> -You should reserve a seperate data directory, 
> where the files with the registered ring and site info will be saved??
> 
> What does reserve mean? 
> Does this mean I place a folder called data in the /cgi-bin/ringlink folder ??
> (I did this but with same results)
Yes.
>  What should I enter here in the rlconfig?
> (As you see I replaced gunnar with ringlink)
> 
> # Path to the directory where the ring data will be stored
> $datapath = '/www/htdocs/ringlink/cgi-bin/ringlink/data';
$datapath="$ENV{'DOCUMENT_ROOT'}/cgi-bin/ringlink/data";
> As you can see I haven't got a clue about this path stuff :(
No big deal.
> Below is what appears on my Hosts help page:
> ~~~~~~~~~~~~~~~~
> For your scripts to work properly, you may need to change some paths or 
> settings within the script to the following:
> 
> Perl 5 Location 
> #!/usr/bin/perl
> 
> Sendmail Location 
> /usr/lib/sendmail
> 
> CGI Url
> http://domain.netfirms.com/cgi-bin/file.cgi
> 
> Your full or absolute root path is:
> $ENV{'DOCUMENT_ROOT'} 
> 
> 
> Remember to use double quotes around the path.
> The full path to your www directory would be:
> "$ENV{'DOCUMENT_ROOT'}/www" 
> 
> The full path to your cgi-bin directory would be:
> "$ENV{'DOCUMENT_ROOT'}/cgi-bin" 
> 
> You can also find your document root by running the printenv program in your 
> cgi-bin directory. Type: domain.netfirms.com/cgi-bin/printenv on any web 
> browser. It will display the absolute path and other variables needed for cgi 
> scripts.
> 
> CGI File Permissions
> Make sure all files in the cgi-bin directory are set to chmod 700. The 
> cgi-bin directory itself should be chmod 701
> ~~~~~~~~~~~~~~~~~~~~~~
>
> Anything of interest there I should include in my rlconfig file or file 
> permissions?
Yes.  You must use the chmod command to set the permissions of files and 
directories as stated above and in Gunnar's readme.txt.  You should find chmod 
in your ftp client.
The permissions are conventionally referrenced as a three digit number.  The 
first digit represents owner permissions, the second digit--group permissions, 
the third digit--others.  The value of the digit represents the permission 
level.  It is a decimal cumulative representation of three times three bit 
strings of binary flags (chipspeak).  The value 'one' represents 'execute' 
permission, 'two'--write permission, 'four'--read permission.  The default unix 
permission is 644, which translates to read and write for the owner, and read 
only for group and other.  To run CGI and make it available to the public, you 
must adjust the permissions of the directory and the files as specified.
No big deal.  Thankfully, you don't need to understand any of this, you just 
have to do it.
> Thanks, guess it is rather obvious yhat it's the first time i tried this 
> cgi stuff,
Yours,
Dave

References to:
SandridgeFarm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]