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

Add a Site, Modify a Site and more won't work

Quote Reply
Add a Site, Modify a Site and more won't work
Add a Site, Modify a Site, Random Link & Search won't work.

Add a Site
http://home.no.net/suxx/cgi-bin/add.cgi

"This page cannot be found"

Modify a Site
http://home.no.net/suxx/links/cgi-bin/links/modify.cgi

"This page cannot be found"

Random Link
http://home.no.net/suxx/cgi-bin/jump.cgi?ID=random

"This page cannot be found"

Search
http://home.no.net/suxx/cgi-bin/search.cgi

Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: /home/p/pt/pt-home/public_html/suxx/cgi-bin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/p/pt/pt-home/public_html/suxx/cgi-bin/search.cgi line 36.

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


Here's some of my links.cfg

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/s/su/suxx/public_html/cgi-bin/links/admin";
$db_dir_url = "http://home.no.net/suxx/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://home.no.net/suxx/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/s/su/suxx/public_html/links";
$build_root_url = "http://home.no.net/suxx/links";

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


Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
Your Paths are wrong. They need to be;


# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/p/pt/pt-home/public_html/suxx/cgi-bin/links/admin";
$db_dir_url = "http://home.no.net/suxx/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://home.no.net/suxx/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/p/pt/pt-home/public_html/suxx/links";
$build_root_url = "http://home.no.net/suxx/links";

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

HINT: Look in the error message;

Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: /home/p/pt/pt-home/public_html/suxx/cgi-bin /usr/lib/perl5/5.6.0/i386-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i386-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /home/p/pt/pt-home/public_html/suxx/cgi-bin/search.cgi line 36.

Also, it sounds like you have messed up with your directory structure. From what I can see it looks like you have;

cgi-bin (with search.cgi, jump.cgi etc in)
cgi-bin/links (with the admin folder in)
cgi-bin/links/admin (with admin.cgi and other files etc)
and the rest of the folders.

What you really need to do is use the default folder locations, e.g.

cgi-bin (with search.cgi, jump.cgi etc in)
cgi-bin/admin (with admin.cgi and other files etc)
and the rest of the folders.

Hope this helps

Andy


webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
Actually the structure should be something like:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/p/pt/pt-home/public_html/suxx/cgi-bin/links/admin";
$db_dir_url = "http://home.no.net/suxx/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://home.no.net/suxx/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/p/pt/pt-home/public_html/suxx/links";
$build_root_url = "http://home.no.net/suxx/links";


Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
You can find your correct server paths real easy. All you have to do is go to a directory with your ftp program and it will show you the correct path from your entry point. like /public-html/cgi-bin/links/admin/
just add the missing part /home/mysite/public-html/cgi-bin/links/admin/

Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
Bob that is not always the case.

FTP programs sometimes only show relative paths.

The best way is "pwd" from telnet.


Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/

Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
So hosts do not allow telnet

Quote Reply
Re: Add a Site, Modify a Site and more won't work In reply to
Or read your hosts FAQ - or use SSH or use:

foreach (sort keys %ENV) {
print "$key : $ENV{$key}\n";
}


Installations:http://www.wiredon.net/gt/
Favicon:http://www.wiredon.net/favicon/