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

Installing Links 2.0

Quote Reply
Installing Links 2.0
 

Dear Links forum,

Can anyone help me with Links 2.0?

I created a directory off my cgi-bin called 'links' and then copied the 'cgi-bin' folder to the new directory.

I set the permissions as instructed in the readme file.

I modified 5 parameters in the links.cfg file:

$db_script_path = "/www/cgi-bin/links/cgi-bin/admin";
$db_dir_url = "http://www.freezineweb.com/cgi-bin/links/cgi-bin/admin";
$db_cgi_url = "http://www.freezineweb.com/cgi-bin/links/cgi-bin";
$build_root_path = "/www/testinglinks/pages";
$build_root_url = "http://freezineweb.com/testinglinks/pages";

I set the permissions on the links.cfg file to 755

When I try and call up the script with this URL:

http://www.freezineweb.com/cgi-bin/links/cgi-bin/admin.cgi

I get the following error message:

Error including libraries: Can't locate /www/cgi-bin/links/cgi-bin/admin/db.pl in @INC (@INC contains: /usr/lib/perl5/i386-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_perl/i386-linux /usr/lib/perl5/site_perl .) at admin.cgi line 28.

Can anyone help me?

Thank you,

Michael Southon
msouthon@freezineweb.com

Quote Reply
Re: Installing Links 2.0 In reply to
1) You are not using the complete full path in your *_path variables (not parameters, and discussed already in this forum). Like the following:

Code:

require "/machine/html/youraccount/cgi-bin/links/admin/links.cfg";


2) You are not using the full path to the links.cfg file in your admin.cgi (as discussed before in this forum).

3) You do NOT need to set the links.cfg file to 755, it should just be readable...644. And there is a FAQ in the Resources section of this site that gives a COMPLETE list of file/folder permissions. In addition, the correct file permissions are also listed in the README file.

Regards,

Eliot Lee
Quote Reply
Re: Installing Links 2.0 In reply to
Dear Eliot Lee,

Thank you for your reply. I corrected the path variables in the links.cfg and now I am getting the Links 2.0 Administration Menu.

However, when I click on 'Add a Link', I get the following error message:

CGI ERROR
==========================================
Error Message : error in get_defaults. unable to open id file: /home/freezine/freezineweb-www/cgi-bin/links/cgi-bin/admin/data/linksid.txt.
Reason: No such file or directory
Script Location : admin.cgi
Perl Version : 5.00404

I just checked the permissions on linksid.cgi and it is 755

Could you please tell me what I'm doing wrong?

Thank you,

Michael Southon.

Quote Reply
Re: Installing Links 2.0 In reply to
linksid.txt is a text file (permissions are 666).

Thomas
http://www.japanreference.com
Quote Reply
Re: Installing Links 2.0 In reply to
And it should go in the data folder. Also, it seems you are hacking the script from the get-go!

I would HIGHLY, and I mean HIGHLY recommend using the default file/folder structure OUTLINED in the README file before customizing, hacking, screwing up, etc. the script.

Got it?

Regards,

Eliot Lee