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

WHAT'S NEW NOT SHOWING???

Quote Reply
WHAT'S NEW NOT SHOWING???
I'm still trying to troubleshoot the What's New Link. It doesn't seem to find the directory. I think the paths are set right.
I've posted them below...

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home2/www/ultra-web/links";
$build_root_url = "http://www.ultra-web.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home2/www.ultra-web/links/New";
$build_new_url = "http://www.ultra-web.com/links/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home2/www.ultra-web/links/Cool";
$build_cool_url = "http://www.ultra-web.com/links/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home2/www.ultra-web/links/Rating";
$build_ratings_url = "http://www.ultra-web.com/links/Rating";

# 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 = 'zzack@mailexcite.com';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'zzack@mailexcite.com';

# Notify visitors automatically when their links are validated?
$db_email_add = 0;

# Notify visitors automatically when their links are modified?
$db_email_modify = 0;

# Log all outgoing messages? Put the full path to a logfile and make
sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get
pretty
# big!
$db_mailer_log = '';

# Build Options




I've also noticed the cgi error message in the admin scrren...

CGI ERROR
==========================================
Error Message : unable to open what's new page:
/home2/www.ultra-web/links/New/index.html. Reason: No such file or
directory
Script Location : nph-build.cgi
Perl Version : 5.00404


Any Ideas, Please advise...

Thanks

Zack


Quote Reply
Re: WHAT'S NEW NOT SHOWING??? In reply to
   
Quote:
# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home2/www/ultra-web/links";
$build_root_url = "http://www.ultra-web.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "/home2/www.ultra-web/links/New";
$build_new_url = "http://www.ultra-web.com/links/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "/home2/www.ultra-web/links/Cool";
$build_cool_url = "http://www.ultra-web.com/links/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "/home2/www.ultra-web/links/Rating";
$build_ratings_url = "http://www.ultra-web.com/links/Rating";

The paths you are using for the New and Cool pages do not match the path you specified for building the pages. In one, you have /www/ultra-web/ and in the other you have www.ultra-web.

The paths for the New, Cool and Ratings should be as follows:

Quote:
$build_new_path = "$build_url_path/New";
$build_cool_path = "$build_url_path/Cool";
$build_ratings_path = "$build_url_path/Rating";

I also noticed another potential problem in your configuration.

Quote:
# PATH of sendmail. # SMTP Server
$db_mail_path = ''; $db_smtp_server = 'zzack@mailexcite.com';

$db_smtp_server should be the name of your server, not your email address. If you are not using excite.com as your ISP but just have a mailbox there, that will not work. If they are your ISP, then find out from what the name of the server is.

Personally, I think you'd be better off using your ISP's sendmail system instead.

[This message has been edited by Bobsie (edited March 18, 1999).]
Quote Reply
Re: WHAT'S NEW NOT SHOWING??? In reply to
Thank you for your help with this Bobsie...
Ok, I changed the paths to the following;

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home2/www/ultra-web/links";
$build_root_url = "http://www.ultra-web.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_url_path/New";
$build_new_url = "http://www.ultra-web.com/links/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_url_path/Cool";
$build_cool_url = "http://www.ultra-web.com/links/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_url_path/Rating";
$build_ratings_url = "http://www.ultra-web.com/links/Rating";

and I also set my mail server correct, I kind of breezed over that one.

When I click build pages, the admin screen still shows;

Building What's New Page . . .

CGI ERROR
==========================================
Error Message : unable to open what's new page: /New/index.html. Reason: No such file or directory
Script Location : nph-build.cgi
Perl Version : 5.00404

When I go to the main page and click the what's new link it shows file not found.

For some reason its still not generating the New page. I have an empty directory "New" within the Links directory but no index.html file within.

Is there still some sort of path problem here or is it a problem with the directory settings? Please advise...
Quote Reply
Re: WHAT'S NEW NOT SHOWING??? In reply to
I apologize. I gave you the wrong info. Change all the $build_url_path's to $build_root_path.

Here is how it should look:

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

Again, I am sorry for the mistake.