Hi
Your paths do not look to be correct but this depends a lot on your server configuration.
You need to use the full path for perl,
copy the following script, changing the first line to your perl eg
#!/usr/bin/perl
or
#!/usr/bin/local/perl
call it anything.cgi and ftp it to your admin folder, then call up the script using your browser, the first line is what you need for your path to your admin folder, you can then either work out the rest of your paths or ftp it to the rest of the folders
#!/usr/bin/perl
use strict;
print "Content-type: text/html\n\n";
my $directory=$ENV{'SCRIPT_FILENAME'};
my $dir=substr ($directory,0, -10);
my $root_dir=$ENV{'DOCUMENT_ROOT'};
my $base_dir=$ENV{'SCRIPT_NAME'};
my $base_dir=substr ($base_dir,0, -10);
print qq~<font face="verdana" color=blue><h3>FoyleNet Script Tools</h3>
<p><font face="verdana" size=2> This file will simply help you with the
directory paths on your server. Below are a few paths that may assist
you install your cgi scripts.</font></p>
<table width=95%><font size=2>
<tr>
<td><font face="verdana" size=2>
You are using perl version
</td>
<td><b><font face="verdana" size=2>
$] </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
Full path to this directory
</td>
<td> <b><font face="verdana" size=2>
$dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The root directory
</td>
<td> <b><font face="verdana" size=2>
$root_dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The base path
</td>
<td> <b><font face="verdana" size=2>
$base_dir </b>
</td>
</tr>
</table>
<p><center><font face="verdana" size=1>
<a href="http://www.foylenet.com/scripts/">FoyleNet Scripts
</a></font></center>~;
Good Luck
DavyC
Your paths do not look to be correct but this depends a lot on your server configuration.
You need to use the full path for perl,
copy the following script, changing the first line to your perl eg
#!/usr/bin/perl
or
#!/usr/bin/local/perl
call it anything.cgi and ftp it to your admin folder, then call up the script using your browser, the first line is what you need for your path to your admin folder, you can then either work out the rest of your paths or ftp it to the rest of the folders
#!/usr/bin/perl
use strict;
print "Content-type: text/html\n\n";
my $directory=$ENV{'SCRIPT_FILENAME'};
my $dir=substr ($directory,0, -10);
my $root_dir=$ENV{'DOCUMENT_ROOT'};
my $base_dir=$ENV{'SCRIPT_NAME'};
my $base_dir=substr ($base_dir,0, -10);
print qq~<font face="verdana" color=blue><h3>FoyleNet Script Tools</h3>
<p><font face="verdana" size=2> This file will simply help you with the
directory paths on your server. Below are a few paths that may assist
you install your cgi scripts.</font></p>
<table width=95%><font size=2>
<tr>
<td><font face="verdana" size=2>
You are using perl version
</td>
<td><b><font face="verdana" size=2>
$] </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
Full path to this directory
</td>
<td> <b><font face="verdana" size=2>
$dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The root directory
</td>
<td> <b><font face="verdana" size=2>
$root_dir </b>
</td>
</tr>
<tr>
<td> <font face="verdana" size=2>
The base path
</td>
<td> <b><font face="verdana" size=2>
$base_dir </b>
</td>
</tr>
</table>
<p><center><font face="verdana" size=1>
<a href="http://www.foylenet.com/scripts/">FoyleNet Scripts
</a></font></center>~;
Good Luck
DavyC