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

Error on requet of admin.cgi

Quote Reply
Error on requet of admin.cgi
After installing Links v2.0 on a Site5 server i tried to access the admin panel and it appeared as a download file. I opened the file and was greeted with this error message.....


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

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


My paths in my "links.cfg" are s follows :

PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/public_html/cgi-bin/links/admin";
$db_dir_url = "http://edezign.co.uk/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://edezign.co.uk/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/public_html/loadsamusic";
$build_root_url = "http://edezign.co.uk/loadsamusic";

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


Anyone have any ideas what im doing wrong ?

Thanx in advance :)

Raymond

Quote Reply
Re: Error on requet of admin.cgi In reply to
yeah...and this question is asked so often it's not funny :-) You need to use full paths instead of relative...

ie:
relative : /public_html/cgi-bin/links/admin (WRONG)
full: /home/username/public_html/cgi-bin/links/admin (RIGHT)

Additionaly, you may need to use full paths in the REQUIRE lines in some/all of the scripts.


Happy coding,

--Drew
http://www.camelsoup.com
ftp://ftp.camelsoup.com
Quote Reply
Re: Error on requet of admin.cgi In reply to
thanx m8, thats done the trick :)

Quote Reply
Re: Error on requet of admin.cgi In reply to
I've submitted this thread to the resource center so hopefully this question won't be asked quite so often.

Happy coding,

--Drew
http://www.camelsoup.com
ftp://ftp.camelsoup.com