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

nph-build - unable to open temp links err

Quote Reply
nph-build - unable to open temp links err
I have set and reset permissions - however I cannot find the file links.db.bak - that this error message says it does not have permission to open. The whole response is listed below.... please help!

Links Manager: Building Pages

Building Pages


Pages built on 21-Aug-1999 at 23:53:01
--------------------------------------------------------

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: 2 hits



CGI ERROR
==========================================
Error Message : unable to open temp links database: /secure/i/innovationdevelopment/Scripts/links/ledburyscript/admin/data/links.db.bak. Reason: Permission denied
Script Location : /secure/i/innovationdevelopment/Scripts/links/ledburyscript/admin/nph-build.cgi
Perl Version : 5.00403

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /secure/i/innovationdevelopment
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/xbm, image/x-jg, */*
HTTP_ACCEPT_LANGUAGE: en
HTTP_CONNECTION : Keep-Alive
HTTP_COOKIE : RMID=d4386c0936777bf0
HTTP_EXTENSION : Security/Remote-Passphrase
HTTP_HOST : www.innovationdevelopment.co.uk
HTTP_IF_MODIFIED_SINCE: Sat, 21 Aug 1999 23:51:32 GMT
HTTP_UA_CPU : PPC
HTTP_UA_OS : MacOS
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 4.5; Mac_PowerPC)
PATH : /usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
QUERY_STRING :
REMOTE_ADDR : 195.8.84.226
REMOTE_PORT : 2093
REQUEST_METHOD : GET
REQUEST_URI : /Scripts/links/ledburyscript/admin/nph-build.cgi
SCRIPT_FILENAME : /secure/i/innovationdevelopment/Scripts/links/ledburyscript/admin/nph-build.cgi
SCRIPT_NAME : /Scripts/links/ledburyscript/admin/nph-build.cgi
SERVER_ADMIN : webmaster@innovationdevelopment.co.uk
SERVER_NAME : www.innovationdevelopment.co.uk
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache/1.3.4 (Unix)
Quote Reply
Re: nph-build - unable to open temp links err In reply to
I think there is something on this in the FAQ section written by Bobsie.
chmod
Quote Reply
Re: nph-build - unable to open temp links err In reply to
Unfortunately Bobsies solution didn't help as in this case the error is occurring within the build routine - the error message causing the nph-build.cgi routine to crash stating unable to open temp links database ... links.db.bak. Reason: Permission denied The point that Bobsie makes about permissions settings may well apply however - but how can I set it to insist that the permission settings for the creation of these temp files are world read and writable? (if this is the problem?!)
Quote Reply
Re: nph-build - unable to open temp links err In reply to
I had exactly the same problem.

A bit of thinking led me to chmod the data directory to 777.

It all now works perfectly, I hope this will help you.
Quote Reply
Re: nph-build - unable to open temp links err In reply to
Yes, the data directory should be chmod 777 in order for the script to be able to create files (even temporary ones) inside of it.
Quote Reply
Re: nph-build - unable to open temp links err In reply to
The root of the problem is that it the readme.txt file does not mention that this directory should be chmod 777. This should be changed I think (I've looked through it and I cannot find any mention).

I am finding the script to be excellent along with the installation instuctions, though this is an oversight.