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

Building Error

Quote Reply
Building Error
Hi.

Got the following error:

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

CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /export/www/4cm/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502

Quote Reply
Re: Building Error In reply to
Sounds like that script, nph-build.cgi, needs to be chmodded to 755, Yokhannan.

RudeBoy
Quote Reply
Re: Building Error In reply to
Yea, I tried that.

That wasn't it. It was already set @ 755.

hmmm...
Quote Reply
Re: Building Error In reply to
Those files in the backup directory should be chmodded to 666. Assuming you did that, right?...I would go into those files, and chmod them individually as well.

Good luck,

RudeBoy
Quote Reply
Re: Building Error In reply to
The only file in the /links/admin/backup directory is index.html

Is there suppose to be more there?
Do I 666 that one file?



Also, how happy are you with CI Hosting?
And is there special deal, right now, a good deal? https://www.cihost.com/specials.html

Thanks!
Quote Reply
Re: Building Error In reply to
Yes, there's only one file in the backup folder. I would chmod it to 666 as well.

I was reading your error message and it was saying something about links backup. I'm guessing this is the links.db file. All files in the data directory should be chmodded to 666 as well. I would go in there and chmod each file just to make sure.

RudeBoy
Quote Reply
Re: Building Error In reply to
Ok, I guess we could sit here and guess all day/night long!!
Below is the chmods/directory list for everything.

BIG thanks for the help man!!
----------------------------------

/export/www/4cm/cgi-bin/links

-rwxr-xr-x add.cgi
drwxr-xr-x admin
-rwxr-xr-x jump.cgi
-rwxr-xr-x modify.cgi
-rwxr-xr-x rate.cgi
-rwxr-xr-x search.cgi
-rwxr-xr-x subscribe.cgi
----------------------------------

/export/www/4cm/cgi-bin/links/admin

drwxr-xr-x HTML
drwxr-xr-x LWP
-rw-r--r-- Mailer.pm
-rw-r--r-- Template.pm
-rw-r--r-- Validator.pm
-rwxr-xr-x admin.cgi
-rw-r--r-- admin_html.pl
drwxr-xr-x backup
-rw-r--r-- category.def
drwxr-xr-x data
-rw-r--r-- db.pl
-rw-r--r-- db_utils.pl
-rw-r--r-- links.cfg
-rw-r--r-- links.def
-rwxr-xr-x nph-build.cgi
-rwxr-xr-x nph-email.cgi
-rwxr-xr-x nph-verify.cgi
-rw-r--r-- site_html.pl
-rw-r--r-- site_html_templates.pl
drwxr-xr-x template
----------------------------------

/export/www/4cm/cgi-bin/links/admin/backup

-rw-r--r-- index.html
----------------------------------

/export/www/4cm/cgi-bin/links/admin/data

-rw-rw-rw- categories.db
-rw-rw-rw- categoryid.txt
-rw-rw-rw- email.db
drwxrwxrwx hits
-rw-rw-rw- links.db
-rw-rw-rw- linksid.txt
-rw-rw-rw- modified.db
drwxrwxrwx rates
-rw-rw-rw- url.db
-rw-rw-rw- validate.db

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

/export/www/4cm/cgi-bin/links/admin/data/hits

-rw-r--r-- index.count
----------------------------------

/export/www/4cm/cgi-bin/links/admin/data/rates

-rw-r--r-- index.html
----------------------------------

/export/www/4cm/cgi-bin/links/admin/HTML

-rw-r--r-- Entities.pm
-rw-r--r-- HeadParser.pm
-rw-r--r-- Parser.pm
----------------------------------

/export/www/4cm/cgi-bin/links/admin/LWP/Parallel
-rw-r--r-- Protocol.pm
-rw-r--r-- UserAgent.pm
----------------------------------

/export/www/4cm/cgi-bin/links/admin/LWP/Parallel/Protocol
-rw-r--r-- ftp.pm
-rw-r--r-- http.pm
----------------------------------

/export/www/4cm/cgi-bin/links/admin/templates

-rw-rw-rw- add.html
-rw-rw-rw- add_error.html
-rw-rw-rw- add_success.html
-rw-rw-rw- category.html
-rw-rw-rw- cool.html
-rw-rw-rw- detailed.html
-rw-rw-rw- email-add.txt
-rw-rw-rw- email-del.txt
-rw-rw-rw- email-mod.txt
-rw-rw-rw- email.html
-rw-rw-rw- email_error.html
-rw-rw-rw- home.html
-rw-rw-rw- link.html
-rw-rw-rw- modify.html
-rw-rw-rw- modify_error.html
-rw-rw-rw- modify_success.html
-rw-rw-rw- new.html
-rw-rw-rw- rate.html
-rw-rw-rw- rate_error.html
-rw-rw-rw- rate_success.html
-rw-rw-rw- rate_top.html
-rw-rw-rw- search.html
-rw-rw-rw- search_error.html
-rw-rw-rw- search_results.html
----------------------------------


Then, for my "LINKS/PAGES"
----------------------------------

/export/www/4cm/links

drwxrwxrwx pages
----------------------------------

/export/www/4cm/links/pages

-rw-r--r-- background.gif
-rw-r--r-- links.css


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

Here's my THE FIRST PART of the links.cfg file:


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

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

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/export/www/4cm/links/pages";
$build_root_url = "http://www.4cm.com/links/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/bin/mail'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'support@4cm.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
# --------------------------------------------------------
# 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;

Quote Reply
Re: Building Error In reply to
Now we're gettin somewhere. You say that these are your paths?

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/export/www/4cm/cgi-bin/links/admin";
$db_dir_url = "http://www.4cm.com/cgi-bin/links/admin";

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

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/export/www/4cm/links/pages";
$build_root_url = "http://www.4cm.com/links/pages";

Looks like you have 2 "links" directories. One inside the cgi-bin, and one outside. Make sure you're pointing to the correct path, and that should take care of it.

I gotta go for now, but I might be on later.

Good luck,

RudeBoy




Quote Reply
Re: Building Error In reply to
hi, I fixed that. And updated the links.cfg file. I'm still getting the error.

Here is the complete error. Maybe it will help. Could be that nph-builder.cgi isn't allowed on my account?

---------------------
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /export/www/4cm/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502

Form Variables
-------------------------------------------
staggered : 1

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /export/www/4cm
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
HTTP_ACCEPT_CHARSET : iso-8859-1,*,utf-8
HTTP_ACCEPT_ENCODING: gzip
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.4cm.com
HTTP_REFERER : http://www.4cm.com/cgi-bin/links/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.61 [en] (Win98; I)
PATH : /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:
QUERY_STRING : staggered=1
REMOTE_ADDR : 204.189.33.70
REMOTE_PORT : 2284
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/links/admin/nph-build.cgi?staggered=1
SCRIPT_FILENAME : /export/www/4cm/cgi-bin/links/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/links/admin/nph-build.cgi
SERVER_ADMIN : root@wcinet.net
SERVER_NAME : www.4cm.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SIGNATURE :
Apache/1.3.6 Server at www.4cm.com Port 80


SERVER_SOFTWARE : Apache/1.3.6 (Unix)

------------
Also, I thought I'd try the other features...

[Staggered] Thew up the same Error Message

Under the "Verify Links"
[Quick Check] works
[Detailed] Throws up the following Error.

--------------
Verifying Links

Link checking started at: Wed Dec 8 17:59:36 1999
--------------------------------------------------------
Unable to load Parallel User Checker. System Error:
--
Can't locate HTTP/Request.pm in @INC (@INC contains: /export/www/4cm/cgi-bin/links/admin /usr/local/lib/perl5/5.00502/sun4-solaris /usr/local/lib/perl5/5.00502 /usr/local/lib/perl5/site_perl/5.005/sun4-solaris /usr/local/lib/perl5/site_perl/5.005 .) at /export/www/4cm/cgi-bin/links/admin/Validator.pm line 23.
BEGIN failed--compilation aborted at /export/www/4cm/cgi-bin/links/admin/Validator.pm line 23.
--
Using IO::Socket method instead.

--------------------------------------------------------
Checked 3 - Success (200). Message: OK 200. URL: http://4cm.com/aag/

Took: 0 seconds to check 1 links.

Bad Link Summary
-----------------------------------------------

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

Good Links: 1


#########

Lastly,... I have never had this kind of trouble with cgi... I'm going to start from scratch and do this all over again... But, experiance says it'll usually happen again!

I'm think... is it possible that nph-builder isn't allowed? Is there a way to check it?

Or... I just screwed up the code somewhere!!

Thanks
Quote Reply
Re: Building Error In reply to
Hi... still nothing!

I've rebuilt the entire thing...
Maybe I'm missing something somewhere, but I sure can't find it!

I've redone everything, uploaded it, etc.

Still get the error:

############

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

CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /export/www/4cm/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.00502

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /export/www/4cm
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/x-comet, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.4cm.com
HTTP_REFERER : http://www.4cm.com/cgi-bin/links/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /usr/sbin:/usr/bin:/usr/local/bin:/usr/ccs/bin:
QUERY_STRING :
REQUEST_METHOD : GET
REQUEST_URI : /cgi-bin/links/admin/nph-build.cgi
SCRIPT_FILENAME : /export/www/4cm/cgi-bin/links/admin/nph-build.cgi
SCRIPT_NAME : /cgi-bin/links/admin/nph-build.cgi
SERVER_ADMIN : root@wcinet.net
SERVER_NAME : www.4cm.com
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE : Apache/1.3.6 Server at

##### END ERROR MESSAGE ######

Also, I am not able to set my 'sendmail' to {sendmail} as my server using just 'mail'.

For instance. when you do [where sendmail] nothing returns, however when you do [where mail] it returns: /urs/bin/mail

So, therein I placed that within the mail settings of links.cfg

This has really got me stumped....
Why does it throw that darn "Permissions Denied" message at me??!!

I could really use some help!

JbA
Quote Reply
Re: Building Error In reply to
Hot diggity... I figured something out...

I needed to:

chmod 777 (drwxrwxrwx) the [admin/backup] directory

Then:

chmod 666 (-rw-rw-rw-) the [admin/data/hits/index.count] file


However, now I'm getting another error.
I'll post it in a new message titled:

links.db.bak. Reason: Permission denied

Thanks for the suggestions/help...
Now onto the next one!