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

Help with installation needed...

Quote Reply
Help with installation needed...
Hi everyone,

I have uploaded Links 2 in ASCII mode. However, I do not know how to put in the variables for admin.cfg. Assistance would be highly appreciated.


# Links
# -------------
# Links Manager
#
# File: links.cfg
# Description: Contains all the setup variables.
# =====================================================================

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

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://dogportal.f2s/cgi-bin";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/dogportal.f2s/cgi-bin/links/admin/pages";
$build_root_url = "http://dogportal.f2s/cgi-bin/links/admin/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";

# Database Options
# --------------------------------------------------------
# You really need to use flock(). However if your system doesn't support it (Win95),
# then turn this off at your own risk!
$db_use_flock = 1;
# Use Pragma: no-cache to stop browsers from caching output? (0 = cache, 1 = nocache)
$db_nocache = 0;
# Use IIS headers? Set this to 1 if your web server needs the full headers (HTTP/1.0 etc.)
$db_iis = 0;
# Field number of category in category.db
$db_main_category = 1;
# Referers -- which hosts are allowed to add to your database.
@db_referers = ();

# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = ''; $db_smtp_server = '';


[This message has been edited by Mickey Mouse (edited February 15, 2000).]
Quote Reply
Re: Help with installation needed... In reply to
For the following variables:

Code:
$db_script_path
$build_root_path

You must use your complete ABSOLUTE path to your scripts.

Also, you need to set-up either sendmail or SMTP in the send email options.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Help with installation needed... In reply to
Is the absolute path equal to my virtual path?

How do I set up the mail function (UNIX)?

Thanks for your assistance.....
Quote Reply
Re: Help with installation needed... In reply to
NO...it is not. You really should look-up some Perl tutorials at the following web sites:

www.perl.com
www.cgi-resources.com

Absolute = physical path in server
Virtual = URL path in server

In addition, you need to find out if your hosting company allows sendmail. If so, then you need to add the path in the following variable:

Code:
$db_mail_path = '';

LIKE the following:

Code:
$db_mail_path = '/user/bin/sendmail';

This is JUST AN EXAMPLE...every server has their own SENDMAIL paths. If you do not have access to a sendmail program in your server, then you need to set the SMTP variable, like the following:

Code:
$db_smtp_server = 'dogportal.f2s.com';

Or whatever your SMTP server is.

Also, what is your domain name? You should use that in your URL variables. It looks to me like you are mixing abolute paths with virtual paths in all your variables.

BTW: While LINKS is a relatively easy program to install and use, you really should have more Perl and CGI experience before using LINKS, DBMAN, or FILEMAN.

While not "officially" rated, I would rate LINKS an advanced beginner or intermediate script.

If you are a complete novice with Perl...be prepared for a lot of frustrations.

Just some friendly advice....

Smile

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Help with installation needed... In reply to
Thanks for your prompt reply.

This is fun; I am frustrated + I am losing my hair and teeth.

Enough of complains (I am joking) =).

I had the following errors after utilising the "build pages option" in the Links administration menu.
CGI ERROR
==========================================
Error Message : unable to open home page: /xxxx/cgi-local/links/pages/index.html. Reason: No such file or directory
Script Location : /u/web/xxxx/cgi-local/links/admin/nph-build.cgi
Perl Version : 5.00502

Thanks for your great support.


Quote Reply
Re: Help with installation needed... In reply to
You need to change the /links/pages/ directory to 777 (rwxrwxrwx) as clearly stated in the README file. You also need to create and change the permissions of the following directories:

cool
new
ratings

to 777 (rwxrwxrwx).

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------









Quote Reply
Re: Help with installation needed... In reply to
Thanks Elliot,

I have changed everything according to your instructions. The files in the folders have a chmod of 644.

I have included a copy of the report which is generated after I click build all pages option in Admin. The main problem is that I cannot view the pages using a web browser (i.e. I5).


Building Home Pages . . .
Subcategories: 1
Total Links: 1
Opening page: /wwwxxx/web/xxxx/cgi-local/links/pages/index.html
Closing page.
Done

Building What's New Page . . .
New Links for 16-Feb-2000: 1
Total New Links: 1
Done

Building What's Cool Page . . .
Cool Links: 0
Done

Building Top Rated Page . . .
Vote Range: ..
Rate Range: ..
Done

Building Category Pages . . .
Building Category: Internet
Subcategories: 0
Links: 1
Directory: /wwwxxx/web/xxxx/cgi-local/links/pages/Internet
Filename : /wwwxxx/web/xxxx/cgi-local/links/pages/Internet/index.html

Done

Pages Built (0 s)!