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

Build-All cgi error-Permission Denied

Quote Reply
Build-All cgi error-Permission Denied
I've tried using the Build-All feature in the Mgr several times, but have had no success. I have the backup directory CHmod to 777. The Build-Staggered routine and the Build-Staggered(Auto) routine work fine. Why can't I use the Build-All?

The following is the cgi error I get every time....

CGI ERROR
==========================================
Error Message : unable to open temp links database: /data1/hypermart.net/mr-k/links/cgi-bin/admin/data/links.db.bak. Reason: Permission denied
Script Location : /data1/hypermart.net/mr-k/links/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
AUTH_TYPE : Basic
DOCUMENT_ROOT : /data1/hypermart.net
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 : server4.hypermart.net
HTTP_REFERER : http://server4.hypermart.net/mr-k/links/cgi-bin/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.5 [en] (Win95; I)
PATH : /bin:/usr/bin:/sbin:/usr/sbin
QUERY_STRING :
REMOTE_ADDR : 206.158.234.21
REMOTE_HOST : 206.158.234.21
REMOTE_PORT : 1348
REMOTE_USER : mr-k
REQUEST_METHOD : GET
REQUEST_URI : /mr-k/links/cgi-bin/admin/nph-build.cgi
SCRIPT_FILENAME : /data1/hypermart.net/mr-k/links/cgi-bin/admin/nph-build.cgi
SCRIPT_NAME : /mr-k/links/cgi-bin/admin/nph-build.cgi
SCRIPT_URI : http://server4.hypermart.net/mr-k/links/cgi-bin/admin/nph-build.cgi
SCRIPT_URL : /mr-k/links/cgi-bin/admin/nph-build.cgi
SERVER_ADMIN : webmaster@hypermart.net
SERVER_NAME : server4.hypermart.net
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.0
SERVER_SOFTWARE : Apache/1.2.4 FrontPage/3.0.3

Quote Reply
Re: Build-All cgi error-Permission Denied In reply to
What are the permissions set for in your data directory? The temporary file it is trying to create is not in the backup directory, it is in the data directory. If the permissions of the data directory are not at least 755, it cannot create that file.

I also suggest you look in the data directory and see if links.db.bak already exists and if so, check its permissions. If nothing else, make the permissions 666 (world readable and writeable) and see if that fixes the problem.
Quote Reply
Re: Build-All cgi error-Permission Denied In reply to
Thanks. I had to set Chmod 777 in Data directory for it to work. But, now it works fine. Sure is faster than Staggered.