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

links.cfg file...where am i going wrong???

Quote Reply
links.cfg file...where am i going wrong???
Could someone please point out where I am going wrong setting up the links.cfg file. I think it has to be the paths

Code:
# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/cgi-bin/links";
$db_dir_url = "http://www.kevinolean.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data/cgi-bin/links/pages";
$build_root_url = "http://www.kevinolean.com/cgi-bin/links/pages";
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
In Reply To:
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/data/cgi-bin/links/pages";
$build_root_url = "http://www.kevinolean.com/cgi-bin/links/pages";

Why build in the cgi-bin dir? Just use your regular html dir. You should check you isp for the correct path's. every isp has differnt settings/paths. Good luck!
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
That path doesn't look anywhere near right Wink As stated a lot of times, it needs to be an ACTUAL path, not a relative one.

I.e. it should be something like;

/home/yousite.com/public_html/links/cgi-bin/

Do you see what I mean? If you don't know your path, then upload the script and do the CHMODs, and then try to run it. A window will pop-up asking you to open or save it....just open it. Paste your error here and we can tell you what your path is 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!
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
This is from my Webhost's site

Perl path/location


Perl is in /usr/bin/perl


Path to sendmail


/usr/sbin/sendmail


Ive tried rerunning it without my configurations added to the link.cfg file, however I have a custon 404 message that keeps on coming up. If this doesnt help, I can just delete all the files and start over from scratch.
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
Ok, in that case....try uploading and CHMODing this script to 755. Then just call it, and see what your DOCUMENT_ROOT is.

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!
Quote Reply
Re: [Andy] links.cfg file...where am i going wrong??? In reply to
Okay I did that and got this:

Environment Variables DOCUMENT_ROOT /home/kevinolean.com/data

So I tried this:

Code:

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/kevinolean.com/data/cgi-bin/links/admin";
$db_dir_url = "http://www.kevinolean.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/alex/links/pages";
$build_root_url = "http://localhost/links/pages";

# 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";
Still completely clueless as to what I am missing.
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
You're still messing up the *path variables in the file. Look for alex in the file and you'll see what I mean! You need to use the complete FULL physical PATH in YOUR account in the PATH variable sin the file!
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] links.cfg file...where am i going wrong??? In reply to
Okay,

But I cannot figure out what my complete FULL physical PATH in MY account is.
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
UhH>>>>>>YEA< you have!!!

Look here:

Okay I did that and got this:

Environment Variables DOCUMENT_ROOT /home/kevinolean.com/data


THAT IS YOUR PHYSICAL PATH!!!!

AND you FOR SURE did not carefully edit your LINKS.CFG FILE! You've left the default paths in THERE, my friend! AGAIN, look for alex and YOU WILL see what I mean!!
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] links.cfg file...where am i going wrong??? In reply to
I'd like to thank you all for your support and concern. I finally have it installed :)

The problems I ran into were:
  • the top lines on each .cgi page needed to be changed
  • I had the whole directory hierarchy setup WRONG (carelessness)


Thank you all for putting up with me, as I atleast needed some kind of mental support or else I would have said f--- the damn script.

Thanks,

Kevin Olean
Quote Reply
Re: [kaolean] links.cfg file...where am i going wrong??? In reply to
I've read and printed out this entire thread and am still confused. Sorry. I have no PERL knowledge whatsoever (everyone roll eyes here) Crazy but am muddling my way through this.

I'm looking over the links.cfg file and it seems there are TWO distinctive directories using the name "links". There's one BEFORE the cgi-bin directory as in:

$db_cgi_url = "http://localhost/links/cgi-bin";

...and the installation instructions suggest creating and loading all the User cgi files into another LINKS directory as in:

/cgi-bin/links

Am I incorrect?? I feel like I'm going in circles.
Quote Reply
Re: [MadridMan] links.cfg file...where am i going wrong??? In reply to
Upload a copy of your current .cfg file and then we may be able to identify the problem(s).
========================================
Buh Bye!

Cheers,
Me