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

Can't Find links.cfg on installation

Quote Reply
Can't Find links.cfg on installation
I just downloaded Links 2.0 and installed it on my host's linux web servers. When I do as the readme says and go to http://yourserver.com/cgi-bin/links/admin/admin.cgi here: http://fatchucks.com/cgi-bin/links/admin/admin.cgi , I get this error: "Error including libraries: Can't locate /home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg at admin.cgi line 27.

Make sure they exist, permissions are set properly, and paths are set correctly."

YES, I've read *all* previous posts on this topic and followed their advice. Here is my admin.cgi header:

require 5.001; # Make sure we have at least perl 5.001.
require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines.
};


Here is my links.cfg setup:

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/fatchucks/fatchucks-www/testreview";
$build_root_url = "http://www.fatchucks.com/testreview";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$/home/fatchucks/fatchucks-www/testreview/new";
$build_new_url = "$http://www.fatchucks.com/testreview/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$/home/fatchucks/fatchucks-www/testreview/cool";
$build_cool_url = "$http://www.fatchucks.com/testreview/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$/home/fatchucks/fatchucks-www/testreview/ratings";
$build_ratings_url = "$http://www.fatchucks.com/testreview/ratings";

Straight from my web host's online manual, my directory path is: /home/username/domain-www/cgi-bin , which translates to /home/fatchucks/fatchucks-www/cgi-bin , according to the manual: http://manual.4ua.com/chpt11.html .

My cgi-bin/links directory is organized per the default install: domainpath/cgi-bin/links/admin/...


I have set permissions correctly repeatedly according to these readme instructions via CuteFTP 3:

chmod 755 (-rwxr-xr-x) on all .cgi files.
chmod 666 (-rw-rw-rw-) on all files in the data directory.
chmod 666 (-rw-rw-rw-) on all your template files (if using the online editor).
chmod 777 (drwxrwxrwx) on the hits directory
chmod 777 (drwxrwxrwx) on the ratings directory
chmod 777 (drwxrwxrwx) on the directory where Links pages will be created.

I am intentionally uploading everything in ASCII, not Binary or Auto.

Any ideas on what I'm missing? Again, I've already searched for "locate db.pl" and "locate object method" and nothing found has been very helpful.

Thanks,

Chuck

Last edited by:

anonicon: Mar 21, 2002, 2:23 AM
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
Hi,

Take a look
>
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines

>

There is extra $ char in the quote

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] Can't Find links.cfg on installation In reply to
 
Quote Reply
Re: [tandat] Can't Find links.cfg on installation In reply to
Still no luck. I've tried both of these admin.cgi options, both with and without the $ char. The url for the error message is http://www.fatchucks.com/...inks/admin/admin.cgi .

With the $ char, like so:

require 5.001; # Make sure we have at least perl 5.001.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines.
};

The error message is:

"Error including libraries: Can't locate
home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at admin.cgi line 27. Make sure they exist, permissions are set properly, and paths are set correctly."

Without the $ char:

require 5.001; # Make sure we have at least perl 5.001.
require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines.
};

The error message is:

"Error including libraries: Can't locate /home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg at admin.cgi line 27. Make sure they exist, permissions are set properly, and paths are set correctly."

I have set all file and directory permissions per the Links 2.0 Readme. Any ideas on what I or my host's server is doing wrong? I'm not a computer newbie at all, but this has got me stumped.

Thank you for any help.

Chuck
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
Are you absolutely certain those paths are correct? Try commenting out the first require() and see if the same thing happens for db.pl.

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] Can't Find links.cfg on installation In reply to
KJII, doing as you suggested, I # commented out the links.cfg path, leaving the header like so:

# require "/home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "$/home/fatchucks/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines.
};

The error message *did* que down to the db.pl line:

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

Make sure they exist, permissions are set properly, and paths are set correctly."

As far as the server path, straight from my webhost's online manual at http://manual.4ua.com/chpt11.html , my server path is: /home/username/domain-www/cgi-bin, or /home/fatchucks/fatchucks-www/cgi-bin.

Is my host wrong about the server path, or am I a YAC (yet another clod)? Ideas are welcomed.

Chuck
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
Try running this script to see what your paths are supposed to be...
Code:
#!/usr/local/bin/perl
use CGI qw(:standard);
print header(),
html(
body(
join br(), map { "$_ = $ENV{$_}"} sort keys %ENV
)
);

Last edited by:

King Junko II: Mar 21, 2002, 11:03 PM
Quote Reply
Re: [King Junko II] Can't Find links.cfg on installation In reply to
I couldn't get that script to execute from a path.cgi file (that has your code) under 755, but according to my host's control panel the path indeed is /home/fatchucks/fatchucks-www/cgi-bin/etcetcetc...

I tried logging in with telnet but no luck...
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
That's odd... it worked just fine on my pc, only difference being the path to Perl.

--Philip
Links 2.0 moderator
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
The problem is you are missing a forward slash before home/

Can't locate /home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl

Last edited by:

Paul: Mar 22, 2002, 1:19 AM
Quote Reply
Re: [Paul] Can't Find links.cfg on installation In reply to
Two things. First, I'm not missing any slashes before home/ . Check out posts 4 and 6 above - there are no missing /'s before home at all.

Second, I *duh* forgot to change the path to perl on your "find the root path" script, KJ II. Mine is !#/usr/bin/perl. Changing the perl path for your script, here's the readout:

DOCUMENT_ROOT = /home/fatchuck/fatchucks-www
GATEWAY_INTERFACE = CGI/1.1
HTTP_ACCEPT = image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, */*
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_ACCEPT_LANGUAGE = en-us
HTTP_CONNECTION = Keep-Alive
HTTP_HOST = www.fatchucks.com
HTTP_USER_AGENT = Mozilla/4.0 (compatible; MSIE 6.0; Windows 98)
PATH = /usr/local/bin:/usr/bin:/bin
QUERY_STRING =
REMOTE_ADDR = 216.196.130.45
REMOTE_PORT = 4397
REQUEST_METHOD = GET
REQUEST_URI = /cgi-bin/path.cgi
SCRIPT_FILENAME = /home/fatchuck/fatchucks-www/cgi-bin/path.cgi
SCRIPT_NAME = /cgi-bin/path.cgi
SERVER_ADMIN = webmaster@fatchucks.com
SERVER_NAME = fatchucks.com
SERVER_PORT = 80
SERVER_PROTOCOL = HTTP/1.1
SERVER_SOFTWARE = Apache/1.3.20 (Unix) ApacheJServ/1.1.2 PHP/4.0.4pl1 FrontPage/5.0.2.2510 Rewrit/1.1a


You'll notice that the server path is as the control panel and online manual stated.

Does anyone have any ideas on what we might be overlooking? FYI, the shebang for admin.cgi *is* #!/usr/bin/perl - I didn't overlook that either.
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation In reply to
Hmm thats funny because post 6 says (as does post 4):

Error including libraries: Can't locate home/fatchucks/fatchucks-www/cgi-bin/links/admin/db.pl

Notice the missing forward slash

Last edited by:

Paul: Mar 22, 2002, 5:06 AM
Quote Reply
Re: [Paul] Can't Find links.cfg on installation In reply to
OH, you mean the error message. I thought you meant the code I was using from the admin.cgi or links.cfg files.

Is that a useful or useless clue? If you look at the two error messages from post 4, you'll notice the second error message (without the $ char in the path) states:

"Error including libraries: Can't locate /home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg at admin.cgi line 27. Make sure they exist, permissions are set properly, and paths are set correctly."

The error message with the $ char states:

"Error including libraries: Can't locate
home/fatchucks/fatchucks-www/cgi-bin/links/admin/links.cfg in @INC (@INC contains: /usr/lib/perl5/5.6.0/i686-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i686-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at admin.cgi line 27. Make sure they exist, permissions are set properly, and paths are set correctly."


The "with a $ char" error has no preceding / before home/ . So, I'll go and change both files to remove the $ signs from the header of each.

....sigh....

It didn't change anything. What the hell am I missing?

Chuck
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation (Solved) In reply to
SON OF A BITCH!

I had the path as /home/fatchucks/fatchucks-www/cgi-bin/blahblahblah

The path should be /home/fatchuck/fatchucks-www/cgi-bin/blahblahblah - no "s" after fatchuck. Apparently my host's auto-setup script set up my username to be a bit different than my domain name. This works fine now (well, I can at least see the Admin Menu).

Thank you very much for all of your help - I at least know now that there should be no $ chars preceding any path lines in admin.cgi or links.cfg . It's just a suggestion, but you may want to remove those $'s from the headers - newbies will be thrown by having them in there (as in, "I shouldn't remove these $'s or else my script might not work"). Should the $'s be in the "/path/statements/" by default in these headers for admin.cgi and links.cfg, respectively? (I've removed them from mine):

require 5.001; # Make sure we have at least perl 5.001.
require "/home/fatchuck/fatchucks-www/cgi-bin/links/admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "/home/fatchuck/fatchucks-www/cgi-bin/links/admin/db.pl"; # Database Routines.
require "/home/fatchuck/fatchucks-www/cgi-bin/links/admin/db_utils.pl"; # Database Support utilities.
require "/home/fatchuck/fatchucks-www/cgi-bin/links/admin/admin_html.pl"; # Admin HTML routines.
};



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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/fatchuck/fatchucks-www/testreview";
$build_root_url = "
http://www.fatchucks.com/testreview";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home/fatchuck/fatchucks-www/testreview/new";
$build_new_url = "
http://www.fatchucks.com/testreview/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home/fatchuck/fatchucks-www/testreview/cool";
$build_cool_url = "
http://www.fatchucks.com/testreview/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home/fatchuck/fatchucks-www/testreview/ratings";
$build_ratings_url = "
http://www.fatchucks.com/testreview/ratings";

You may wish to kill them.

Thanks for your help, I'm sure I'll be back down the road. ;-)

Chuck
Quote Reply
Re: [anonicon] Can't Find links.cfg on installation (Solved) In reply to
There are only $'s in the requires when you're using a variable to insert the paths found links.cfg. Most of the time, won't have to put full paths unless (I think) the current path isn't included in @inc.

--Philip
Links 2.0 moderator