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

Error Message after install

Quote Reply
Error Message after install
When I try and go to the admin.cgi after installing the script I get this message:

Error including libraries: Can't locate /cgi-bin/links2/admin/db.pl at /home/visionsn/public_html/cgi-bin/links2/admin/admin.cgi line 28.


The db.pl *is* there and I have chmod it 755 and 777 and I still get this message. What can I do?
Quote Reply
Re: [VirginiaB] Error Message after install In reply to
Virginia,

First, you may want to check out my thread just above yours - it's covering the same thing.

Second, do me a favor and copy/paste your header from admin.cgi into a reply here. For example, my header from admin.cgi is this:

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.
};


Also, copy/paste you header from links.cfg in here. Example:

# 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";


Also, what is your server path? An example of mine:

Serverpath: /home/username/domain-www/cgi-bin

And, did you set your permissions per the Readme file? :

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.


Sorry, I went through all this, hope to save you the time.

Let me know what you have...
Quote Reply
Re: [VirginiaB] Error Message after install In reply to
Its easy enough. You just have your paths wrong. See the error message, it reveals all Tongue

Your admin path is actually;

/home/visionsn/public_html/cgi-bin/links2/admin/ and NOT /cgi-bin/links2/admin/ (that is a relative path, NOT a full one).

That should get your sorted, if not, have a read of all the other hundreds of threads that have exactly the same problem Wink

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!