Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Please Help Me With Installing Links 2

Quote Reply
Please Help Me With Installing Links 2
Hello all, i am new here, and i am really interested in using Links 2. However, i am not too good with Perl or PHP, and the readme file has helped me to a certain point, but the rest of it seems like Japanese.

This part is where i get lost, and go a different way, i don't get it. Shamelful to say but it is the truth. I hope someone here can take some of their valuable time of the day to explain this for me, thank you very much, and i will appreciate some kind of help.

4. Edit links.cfg and set as a minimum:

- PATH to your admin directory, this is a system path, not a URL! If you
get an error message about not finding a file, look at the SCRIPT_FILENAME
variable for clues on the proper path!
$db_script_path = "/alex/links/cgi-bin/admin";
- URL to your admin directory. This should start with 'http://'.
$db_dir_url = "http://localhost/links/cgi-bin/admin";
- URL of where your user cgi is kept. If you kept the default installation,
it will just be one level below the admin directory.
$db_cgi_url = "http://localhost/links/cgi-bin";
- PATH to where your pages are built. This should be a system path, not a URL.
$build_root_path = "/alex/links/pages";
- URL of where your pages are.
$build_root_url = "http://localhost/links/pages";

- Set one of either:
$db_mail_path = ''; $db_smtp_server = '';
If you are on NT, set $db_smtp_server to your SMTP server. If you are on UNIX,
set $db_mail_path to your sendmail program.
- Set the email address for who all emails will come from:
$db_admin_email = '';



I get lost on that part.


-Ediz
Quote Reply
Re: [edizzo] Please Help Me With Installing Links 2 In reply to
Assuming you are on a hosted Linux account

PATH to your admin directory
This is the SERVER path that you use for your admin files-
/home/youraccountname/public_html/cgi-bin/admin

URL to your admin directory
This is the URL that your BROWSER would use to access the admin directory from above-
http://yourdomain.com/cgi-bin/admin

URL (that your BROWSER would use) of where your users cgi files are (the directory before the admin)
http://yourdomain.com/cgi-bin


PATH (SERVER path) to where your pages are built- links converts all program files to html pages and wants to know where you would like to put them. (This cannot be inside the cgi-bin)
/home/youraccountname/public_html/pages
(make sure this directory has write permission chmod 777)

URL (that your BROWSER would use) to where your pages are built (of the path above)
http://yourdomain.com/pages


this is where you tell the program where your system email should go
Set one of either -try
$db_mail_path = 'usr/sbin/sendmail'; $db_smtp_server = '';

- Set the email address for who all emails will come from:
(This is where you set your return email address... something like)
$db_admin_email = 'webmaster@yourdomain.com';

Setting these can be confusing at first. You'll get the hang of it. I'll help you... Just give a holler if you need assistance. Shocked
Quote Reply
Re: [jgkiefer] Please Help Me With Installing Links 2 In reply to
In Reply To:
Assuming you are on a hosted Linux account

PATH to your admin directory
This is the SERVER path that you use for your admin files-
/home/youraccountname/public_html/cgi-bin/admin

URL to your admin directory
This is the URL that your BROWSER would use to access the admin directory from above-
http://yourdomain.com/cgi-bin/admin

URL (that your BROWSER would use) of where your users cgi files are (the directory before the admin)
http://yourdomain.com/cgi-bin


PATH (SERVER path) to where your pages are built- links converts all program files to html pages and wants to know where you would like to put them. (This cannot be inside the cgi-bin)
/home/youraccountname/public_html/pages
(make sure this directory has write permission chmod 777)

URL (that your BROWSER would use) to where your pages are built (of the path above)
http://yourdomain.com/pages


this is where you tell the program where your system email should go
Set one of either -try
$db_mail_path = 'usr/sbin/sendmail'; $db_smtp_server = '';

- Set the email address for who all emails will come from:
(This is where you set your return email address... something like)
$db_admin_email = 'webmaster@yourdomain.com';

Setting these can be confusing at first. You'll get the hang of it. I'll help you... Just give a holler if you need assistance. Shocked

Thank you very much, i got it going with help from GG at http://gotwebhost.com, thank you very much for your reply though.
Quote Reply
Re: [jgkiefer] Please Help Me With Installing Links 2 In reply to
 edizzo , please say this links http://yourdomain.com/pages and http://www.yourdomain.com/pages will work both correctly ?
And if i have http://one.yourdomain.com/pages how to use it ?
thanks.
CG Artist
Quote Reply
Re: [Alex Mit] Please Help Me With Installing Links 2 In reply to
Use of www is dependant on your host; some will require the www prefix, others will not. If your host does not require it, then don't use it. You will NOT need to enter both in links.cfg.

If you have a name in front of the main URL (one.yourdomain.com), put that into links.cfg under # PATH and URL of Pages to be built. Just make sure the paths are correct, too.

Also, since your site is using PHP, you can have Links build pages with that extension, and you will be able to use PHP functions in them. In links.cfg under Build Options, change this to php :

# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Jan 3, 2006, 10:57 AM