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

nph file problems cobalt server

Quote Reply
nph file problems cobalt server
 
We have loaded Links 2.0. Having problems running any of the nph files
(nph-build.cgi, etc.)

For example, these files "seem" to be running...the email appears to be running
(we can send mail) but we get an error message on the admin window. Leaving us a
bit confused. nph build had built some files, but we get an internal server error.

We have read and applied everything possible in the Forum, and are still lost.
we also contacted several of your installer one reply listed bellow
The environmental variables are attached below for your reference.
This is not the actual error, it is actually an internal server error.


It is www.cliparttop100.com. It is not password protected if you want to take a look at it.

installers reply:
Michael,

I took a look real quick at your site.

The problem is you are running on a Cobalt server and they use CGI wrap.

I have had this solution before and have worked with some of the other Links pros to no
avail.

At this time I know of know fix to run the NPH files on a Cobalt, thus you will not be able to
'build' the pages.

I am not saying that there is no solution, just I have never heard of one.

Good luck


CGI ERROR
==========================================
Error Message : Done
Script Location : /home/sites/site1/web/cgi-bin/admin/admin.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------
display : body

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /home/sites/site1/web
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.cliparttop100.com
HTTP_REFERER : http://www.cliparttop100.com/cgi-bin/admin/admin.cgi
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /sbin:/usr/sbin:/bin:/usr/bin
PATH_INFO : /cgi-bin/admin/admin.cgi
PATH_TRANSLATED : /home/sites/site1/web/cgi-bin/admin/admin.cgi
QUERY_STRING : display=body
REDIRECT_QUERY_STRING: display=body
REDIRECT_SCRIPT_URI : http://www.cliparttop100.com/cgi-bin/admin/admin.cgi
REDIRECT_SCRIPT_URL : /cgi-bin/admin/admin.cgi
REDIRECT_STATUS : 200
REDIRECT_UNIQUE_ID : N8peBM6KURQAADVUJrY
REDIRECT_URL : /cgi-bin/admin/admin.cgi
REMOTE_ADDR : 209.156.8.111
REMOTE_PORT : 1149
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/admin/admin.cgi?display=body
SCRIPT_FILENAME : /usr/cgiwrap/cgiwrap
SCRIPT_NAME : /cgi-bin/admin/admin.cgi
SCRIPT_URI : http://www.cliparttop100.com/cgi-bin/admin/admin.cgi
SCRIPT_URL : /cgi-bin/admin/admin.cgi
SERVER_ADMIN : site1
SERVER_NAME : www.cliparttop100.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.3 Cobalt (Unix) (Red Hat/Linux)
UNIQUE_ID : N8peBM6KURQAADVUJrY



Thanks mike
Quote Reply
Re: nph file problems cobalt server In reply to
I tried to run nph build in telnet but it scrolled so quick that i could not tell what happened. Type in help but I did not see any commands to stop it from srolling so quick is there a command to slow it down.
Quote Reply
Re: nph file problems cobalt server In reply to
[adminclip admin]$ perl nph-build.cgi
Building Pages
Pages built on 31-Aug-1999 at 00:33:12
--------------------------------------------------------

Backing up database . . .
Backing up links, category and email database (File::Copy) ...
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 24 hits
Updating record: 3, marking as popular (24).
Updating record: 3, marking as new.
Updating record: 4, marking as new.
Updating record: 5, marking as new.
Updating record: 6, marking as new.
Updating record: 7, marking as new.
Updating record: 8, marking as new.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Page . . .
Subcategories: 3
Total Links: 6
Opening page: /home/sites/site1/web/pages/index.html
Closing page.
Done

Building What's New Page . . .
Content-type: text/html

<PRE>

CGI ERROR
==========================================
Error Message : unable to open what's new page: /home/sites/site1/web/page
s/New/index.html. Reason: Permission denied
Script Location : nph-build.cgi
Perl Version : 5.00404

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
HISTFILESIZE : 0
HISTSIZE : 1000
HOME : /home/sites/site1/users/adminclip
HOSTNAME : ns1.iols.com
HOSTTYPE : mips
LOGNAME : adminclip
MAIL : /var/spool/mail/adminclip
OSTYPE : Linux
PATH : /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
PS1 : [\u \W]\$
SHELL : /bin/bash
SHLVL : 1
TERM : vt100
USER : adminclip
_ : /usr/bin/perl

</PRE>[adminclip admin]$ perl nph-verify.cgi
HTTP/1.0 200 OK
Content-type: text/html

Link Checking stated: Tue Aug 31 00:33:27 1999
Unable to load Parallel User Checker. System Error:
--
Can't locate HTTP/Request.pm in @INC (@INC contains: /home/sites/site1/web/cgi-b
in/admin /usr/lib/perl5/mips-linux/5.00404 /usr/lib/perl5 /usr/lib/perl5/site_pe
rl/mips-linux /usr/lib/perl5/site_perl .) at /home/sites/site1/web/cgi-bin/admin
/Validator.pm line 23.
BEGIN failed--compilation aborted at /home/sites/site1/web/cgi-bin/admin/Validat
or.pm line 23.
--
Using IO::Socket method instead.

--------------------------------------------------------
Checked 3 - Request Failed (302). Message: Found, but data resides under differe
nt URL (add a /). URL: http://www.swingsuccess.com
Checked 4 - Request Failed (302). Message: Found, but data resides under differe
nt URL (add a /). URL: http://www.swing101.com
Checked 5 - Request Failed (302). Message: Found, but data resides under differe
nt URL (add a /). URL: http://www.yourhere.com
Checked 6 - Request Failed (302). Message: Found, but data resides under differe
nt URL (add a /). URL: http://www.cliparttop100.com
Checked 7 - Request Failed. Message: IO::Socket::INET: Bad hostname 'www.sportto
p100.com'. URL: http://www.sporttop100.com
Checked 8 - Request Failed. Message: IO::Socket::INET: Bad hostname 'www.swinger
shop.com'. URL: http://www.swingershop.com

Took: 1 seconds to check 6 links.

Bad Link Summary
-----------------------------------------------
3 - http://www.swingsuccess.com : 302 - Found, but data resides under different
URL (add a /)
4 - http://www.swing101.com : 302 - Found, but data resides under different URL
(add a /)
6 - http://www.cliparttop100.com : 302 - Found, but data resides under different
URL (add a /)
5 - http://www.yourhere.com : 302 - Found, but data resides under different URL
(add a /)
8 - http://www.swingershop.com : unresolvable - IO::Socket::INET: Bad hostname '
www.swingershop.com'
7 - http://www.sporttop100.com : unresolvable - IO::Socket::INET: Bad hostname '
www.sporttop100.com'

-----------------------------------------------

Good Links: 0
Bad Links : 6
[adminclip admin]$ perl nph-email.cgi
Mailing started on Tue Aug 31 00:34:00 1999
Quote Reply
Re: nph file problems cobalt server In reply to
sorry about no explaination for the above this is the log file from me exicuting the file from telnet
Quote Reply
Re: nph file problems cobalt server In reply to
 
Quote:
Error Message : unable to open what's new page: /home/sites/site1/web/page

It looks like your root links directory does not have 777 permissions, so Links can't create new directories or files in it.

The nph-verify.cgi script looks like it is working correctly. The errors reported are not in the script, but with the URLs in your links.db database. The 302 errors are all probably caused because, in the database, the URLs do not end with a "/" while they do on the server where the URL is at. Adding a / on the end of the URLs will correct those errors. Something is wrong with the URL of the other two error notices. Apparently, there are no such places (which is one of the reasons you are running nph-verify.cgi -- to find bad links).

I hope this helps.
Quote Reply
Re: nph file problems cobalt server In reply to
I thoght that this might be useful
Thanks for the help

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/sites/site1/web/pages";
$build_root_url = "http://www.cliparttop100.com/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 = '/usr/sbin/sendmail -t'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'swingsuccess@prodigy.net';

# 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 = '/home/sites/site1/web/log/log.txt';

# Build Options
# --------------------------------------------------------
# Setting for popular cutoff, can either be a percent (i.e. top 3%), or
# a fixed value (i.e. top 10). Enter 0.03 or 10 respectively.
$db_popular_cutoff = 0.03; # Top 3%
# Number of days a link is considered New.
$db_new_cutoff = 14; # 14 days old.
# Return search results bolded (1 = yes, 0 = no).
$search_bold = 1;
# The name of an index file.
$build_index = "index.html";
# The extension to use for non index files:
$build_extension = ".html";

# Should your add.cgi automatically select what category the user
# is adding his link into?
$db_single_category = 1;

# Directory Permissions. Do NOT put quotes around it. Set to 0777
# for world writeable. If you put this at 0755, you might need a
# script to remove any directories created as they will be owned
# by the web server or user nobody. Better solution might be to
# run the nph-build routine from the command shell.
$build_dir_per = 0777;

# The script can now break up category pages that have more then x
# number of links in it. It will also create next and previous links
# to help navigate. Set this to 1 if you want to break up pages or 0 if
# you want to have only one page per category.
# Setting this to one, will also break up the What's New pages into
# per day sections (not affected by number of links per page).
$build_span_pages = 1;

# Number of links per page.
$build_links_per_page = 10;

# Detailed View: The script can build a single html page per link. This is
# great if you have a review in your database. To enable, you must set
# the directory where all the pages will be stored, the url to that directory
# and set the enable option.
$build_detailed = 0;
$build_detail_path = "$build_root_path/Detailed";
$build_detail_url = "$build_root_url/Detailed";

# Use Templates: instead of editing site_html.pl, you can edit regular html pages
# encoded with special <%links_tags%>. It's not as flexible as site_html.pl, but it
# may be easier.
$build_use_templates = 1;

# Site Title, the default title to use. You should really spend some time customizing
# the directory though!
$build_site_title = 'Gossamer Threads Links';

# Date Routines
# --------------------------------------------------------
# Your date format can be whatever you like, as long as the following
# two functions are defined &date_to_unix and &unix_to_date:
# The default is dd-mmm-yyyy.

sub date_to_unix {
# --------------------------------------------------------
# This routine must take your date format and return the time a la UNIX time().
# Some things to be careful about..
# timelocal does not like to be in array context, don't do my($time) = timelocal (..)
# int your values just in case to remove spaces, etc.
# catch the fatal error timelocal will generate if you have a bad date..
# don't forget that the month is indexed from 0!
#
my $date = shift; my $i;
my %months = map { $_ => $i++ } qw!Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec!;
my ($day, $mon, $year) = split(/-/, $date);

exists $months{$mon} or return undef;
$day = int($day); $year = $year - 1900;

require Time::Local;
my $time = 0;
eval {
$time = &Time::Local::timelocal(0,0,0, $day, $months{$mon}, $year);
};
if ($@) { die "invalid date format: $date - parsed as (day: $day, month: $months{$mon}, year: $year). Reason: $@"; }
return $time;
}

sub unix_to_date {
# --------------------------------------------------------
# This routine must take a unix time and return your date format
# A much simpler routine, just make sure your format isn't so complex that
# you can't get it back into unix time.
#
my $time = shift;
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time;
my @months = qw!Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec!;
$year = $year + 1900;
return "$day-$months[$mon]-$year";
}

sub long_date {
# --------------------------------------------------------
# This routine is for printing a nicer date format on the what's new page. It should
# take in a date in your current format and return a new one.
my $time = shift;
$time = &date_to_unix ($time);
my ($sec, $min, $hour, $day, $mon, $year, $dweek, $dyear, $tz) = localtime $time;
my @months = qw!January February March April May June July August September October November December!;
my @days = qw!Sunday Monday Tuesday Wednesday Thursday Friday Saturday!;
$year = $year + 1900;
return "$days[$dweek], $months[$mon] $day $year";
}

# -------------------------------------------------------------
# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.
# -------------------------------------------------------------
$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

$db_lib_path = $db_script_path; # PATH of library files.
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_template_path = "$db_script_path/templates"; # PATH to templates.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
1;
Quote Reply
Re: nph file problems cobalt server In reply to
web permission is 775, page is 777

We went into page file, deleted all new files. Ran in Telnet...LOG BELOW with NO errors.

Errors occur when files are already built.
For example, if we wanted to ADD NEW LINKs it would error.

In a browser, all nph files error. Internal Server Error...no details. Creates files and pages and sends email, but all we see in browser is internal server error.

If you want, visit www.cliparttop100.com/cgi-bin/admin/admin.cgi
It is not yet password protected.

That will happen when we can get throught THIS problem...Can't wait til we get it to run so we can add password protection & mods...THANKS for your reply.

Mike & Carrie
******START TELNET.LOG FIle*******
Pages Built (1 s)![adminclip admin]$ perl nph-build.cgi
Building Pages
Pages built on 31-Aug-1999 at 01:43:02
--------------------------------------------------------

Backing up database . . .
Backup exists for today.. Skipping
Done.

Building URL Index . . .
Done.

Updating New and Popular Records . . .
What's New Cutoff: 14 days
Popular Cutoff: 24 hits
Updating record: 3, marking as popular (24).
Updating record: 3, marking as new.
Updating record: 4, marking as new.
Updating record: 5, marking as new.
Updating record: 6, marking as new.
Updating record: 7, marking as new.
Updating record: 8, marking as new.
Done.

Updating ratings ..
Done.

Loading Category Information . . .
Done.

Gathering Category and Link information . . .
Done

Building Home Page . . .
Subcategories: 3
Total Links: 6
Opening page: /home/sites/site1/web/pages/index.html
Closing page.
Done

Building What's New Page . . .
Making Directory (511): '/home/sites/site1/web/pages/New' ...Made. CHMOD
(511) ...Done.
New Links for 30-Aug-1999: 4
New Links for 29-Aug-1999: 2
Total New Links: 6
Done

Building What's Cool Page . . .
Making Directory (511): '/home/sites/site1/web/pages/Cool' ...Made. CHMO
D (511) ...Done.
Cool Links: 1
Done

Building Top Rated . . .
Making Directory (511): '/home/sites/site1/web/pages/Ratings' ...Made. C
HMOD (511) ...Done.
Vote Range: ..
Rate Range: ..
Done

Building Category Pages . . .
Building Category: Personal_Web_Pages
Subcategories: 0
Links: 2
Making Directory (511): '/home/sites/site1/web/pages/Personal_Web_Pages'
...Made. CHMOD (511) ...Done.
Directory: /home/sites/site1/web/pages/Personal_Web_Pages
Filename : /home/sites/site1/web/pages/Personal_Web_Pages/index.html

Building Category: life/in/hell
Subcategories: 0
Links: 0
Making Directory (511): '/home/sites/site1/web/pages/life' ...Made. CHMO
D (511) ...Done.
Making Directory (511): '/home/sites/site1/web/pages/life/in' ...Made. C
HMOD (511) ...Done.
Making Directory (511): '/home/sites/site1/web/pages/life/in/hell' ...Ma
de. CHMOD (511) ...Done.
Directory: /home/sites/site1/web/pages/life/in/hell
Filename : /home/sites/site1/web/pages/life/in/hell/index.html

Building Category: men
Subcategories: 1
Links: 1
Making Directory (511): '/home/sites/site1/web/pages/men' ...Made. CHMOD
(511) ...Done.
Directory: /home/sites/site1/web/pages/men
Filename : /home/sites/site1/web/pages/men/index.html

Building Category: men/women
Subcategories: 0
Links: 3
Making Directory (511): '/home/sites/site1/web/pages/men/women' ...Made.
CHMOD (511) ...Done.
Directory: /home/sites/site1/web/pages/men/women
Filename : /home/sites/site1/web/pages/men/women/index.html

Building Category: southeast
Subcategories: 0
Links: 0
Making Directory (511): '/home/sites/site1/web/pages/southeast' ...Made.
CHMOD (511) ...Done.
Directory: /home/sites/site1/web/pages/southeast
Filename : /home/sites/site1/web/pages/southeast/index.html

Done



------------------
Quote Reply
Re: nph file problems cobalt server In reply to
When I try to run the npg-build.cgi in telnet I get the following message:

Content-type: text/html

<PRE>

CGI ERROR
==========================================
Error Message : You cant run this script from telnet/shell.
Script Location : admin.cgi
Perl Version : 5.00503

Form Variables
-------------------------------------------
....

What can I do?
It works online but not with telnet.

Any Ideas?

Quote Reply
Re: nph file problems cobalt server In reply to
Follow the directions in the FAQ in the Resource Center for Cobalt and NPH files and see if that works.

Regards,

Eliot Lee
Quote Reply
Re: nph file problems cobalt server In reply to
Hello,

I have some problems with my new cobalt RaQ3 server to run nph-files.cgi. I read many forum messages where you and others suggest to read the FAQ about Cobalt and nph-files in resources center. But... I don't find this message ;-(

Please, do you mind to where is it...?

Maybe it has been removed... Have you got the information provided there about how to use nph-files from Control panel...?

Thanks in advance and my best regards from Spain.

Toni


Quote Reply
Re: nph file problems cobalt server In reply to
In Reply To:
Maybe it has been removed... Have you got the information provided there about how to use nph-files from Control panel...?
I have posted codes more than once in this forum before. Search this forum again.

Regards,

Eliot Lee
Quote Reply
Re: nph file problems cobalt server In reply to
Go to FAQ, under Links 2, at the top is the info for the cobalt. It worked on my RaQ3.

Jim