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

Starting Over Again!

Quote Reply
Starting Over Again!
Ok, wll i first installed Megalinks and had tons of problems, i deleted everyhting and now I'm attemping to install it agian. I just need to know a couple things:

1. Should i make all the dir's under the cgi-bin dir? Should i put all the cgi files in the bin, or leave them in let's say the "links" dir? will the script know to look for them there if it can't find them in the cgi-bin?

2. What cgi's have to have the full path to the links.cfg file?

3. I know this is kinda a stupid question, but if your home path is home/id and when you log onto your ftp, you have a public_html dir that you have to upload everything to, do you put in your links.cfg file:
/home/id/public_html/Links/admin or do you leave out the /public_html?

Anyone that could help me, it would be greatly appreciated.

Quote Reply
Re: Starting Over Again! In reply to
This may be a bit "messy" but here goes.
1."Should i make all the dir's under the cgi-bin dir? Should i put all the cgi files in the bin, or leave them in let's say the "links" dir? will the script know to look for them there if it can't find them in the cgi-bin?"
No the server will not no to look for them in a different dir.(unless you tell it where)
If I was you I would do the following
Put the admin dir in the /cgi-bin/link/admin
Have the pages built and url to
http://www.yourdomain.com/links
In the links.cfg add the fillowing
$cgi_url = $build_root_url . "/cgi-bin";
change the following.
# URL of Search Script
$build_search_url = $build_root_url . "/search.cgi";
# URL of Add Script
$build_add_url = $build_root_url . "/add.cgi";
# URL of Modify Script
$build_modify_url = $build_root_url . "/modify.cgi";
# URL of Jump Script
$build_jump_url = $build_root_url . "/jump.cgi";
to

# URL of Search Script
$build_search_url = "$cgi_url/search.cgi";
# URL of Add Script
$build_add_url = "$cgi_url/add.cgi";
# URL of Modify Script
$build_modify_url = "$cgi_url/modify.cgi";
# URL of Jump Script
$build_jump_url = "$cgi_url/jump.cgi";

# URL of Search Script
$build_search_url = "/search.cgi";

2. "What cgi's have to have the full path to the links.cfg file?" Not quit sure what you are refuring to email me and i'll anser that one.

3. " I know this is kinda a stupid question, but if your home path is home/id and when
you log onto your ftp, you have a public_html dir that you have to upload everything
to, do you put in your links.cfg file:
/home/id/public_html/Links/admin or do you leave out the /public_html?"

YES! I must be the FULL path so enter /home/id/public_html/Links/

P.S in the add.cgi, modify.cgi, jump.cgi, and search.cgi change
require "admin/links.cfg";
to

require "/home/id/public_html/cgi-bin/Links/admin/links.cfg";
Thanks
Joey

------------------
Links is HOT! Get it and you will LOVE IT!