Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Links don't show - Catagories do

Quote Reply
Links don't show - Catagories do
http://dragonberry.com/pages/index.html

You'll see the Catagory there, but click on it you don't see the link I added also.
I assume some kind of path is off?

Also, If I try to Add A Resource from there, the submit button looks for add.cgi in the wrong directory.
I assume that's a path issue too.

My directory struction is
(main html directory)>cgi-bin>links>admin
(main html directory)>pages (for the pages)

This is how I have it set up in link.cfg

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "cgi-bin/links/admin";
$db_dir_url = "http://dragonberry.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://dragonberry.com/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "pages";
$build_root_url = "http://dragonberry.com/pages";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";

Can someone spot my problem?

Thanks,
Terry



Quote Reply
Re: Links don't show - Catagories do In reply to
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

Quote Reply
Re: Links don't show - Catagories do In reply to
Hi

Sorry forgot this was windows install, in this case your paths are definitely wrong, they should start something like

d:/usr/something/something/links etc

Not sure if the above script works in windows, never tested it, you may need to name it something.pl

Sorry about that

DavyC