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

What am I doing wrong?

Quote Reply
What am I doing wrong?
I've installed many CGI scripts in my years as a web designer, but this one has beaten me!

My question is this: Apart from the background.gif and links.css, what else do I upload into the pages directory? I'm able to access the admin.cgi and have created a test category, but when I got to the pages directory there's nothing there. I've got the script installed such that all the files/directories in the cgi-bin folder that were in the downloaded package are in a 'links' directory in my cgi-bin. The 'pages' directory is one level below the cgi-bin. Am I supposed to create my own pages to go in the 'pages' directory, or are the template pages supposed to go in their? More to the point, is my 'pages' directory supposed to be outside my cgi-bin?

Hope someone can help as this is driving me mad!

Regards

Mark

Quote Reply
Re: What am I doing wrong? In reply to
Yes put your pages directory outside the cgi-bin then add a category/link from the admin panel and rebuild - the pages will be built in /pages

Make sure links.cfg reflects the relocation of /pages

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: What am I doing wrong? In reply to
Paul,
Thanks for your reply.

I double checked that my pages directory was outside the cgi-bin and that the links.cfg reflected the location of the pages, which they are, so I created a category/link, clicked the Build All link and noticed a CGI Error (see below). I checked the pages directory to see if anything has been built and there wasn't. This is the CGI Error:

CGI ERROR
==========================================
Error Message : Error building! Links database is 0 bytes!
Script Location : /usr/www/bizperso/httpd/htdocs/hearsayc/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502

Just for your information, I've inserted below the first part of my links.cfg so that you can see how I've got it configured:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/usr/www/bizperso/httpd/htdocs/hearsayc/cgi-bin/links/admin";
$db_dir_url = "http://www.hearsayclub.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/usr/www/bizperso/httpd/htdocs/hearsayc/pages";
$build_root_url = "http://www.hearsayclub.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";

Have you got any other suggestions to solve my problem?

Regards

Mark

Quote Reply
Re: What am I doing wrong? In reply to
You mustn't have added a link because that error occurs when links.db is empty.

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com

Quote Reply
Re: What am I doing wrong? In reply to
Paul,
Thanks. After I posted the message I realised what I had done!!

Just one more quick question, is there an easier way of editing the pages other then changing each one individually so that it fits in with the design of the rest of the site?

Regards

Mark

Quote Reply
Re: What am I doing wrong? In reply to
Have you tried editing the templates in /cgi-bin/admin/templates ?

Installs:http://wiredon.net/gt
FAQ:http://www.perlmad.com