Gossamer Forum
Quote Reply
CGI Prob
Hi, I'm getting this problem when I try to "build pages" in links:

Links Manager: Building Pages
Building Pages
Pages built on 13-Dec-1999 at 22:54:50
--------------------------------------------------------

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 : /disk35/usr/webigns/public_html//links/links2/admin/nph-build.cgi
Perl Version : 5.00404

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

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /disk35/usr/webigns/public_html/
GATEWAY_INTERFACE : CGI/1.1
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: en-us
HTTP_CONNECTION : Keep-Alive
HTTP_HOST : www.webigns.com
HTTP_REFERER : http://www.webigns.com/links/links2/admin/admin.cgi?display=navigation
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)
PATH : /usr/sbin:/usr/bin
QUERY_STRING :
REMOTE_ADDR : 152.201.245.146
REMOTE_HOST : 98c9f592.ipt.aol.com
REMOTE_PORT : 1232
REQUEST_METHOD : GET
REQUEST_URI : /links/links2/admin/nph-build.cgi
SCRIPT_FILENAME : /disk35/usr/webigns/public_html//links/links2/admin/nph-build.cgi
SCRIPT_NAME : /links/links2/admin/nph-build.cgi
SERVER_ADMIN : support@digiweb.com
SERVER_NAME : www.webigns.com
SERVER_PORT : 80
SERVER_PROTOCOL : HTTP/1.1
SERVER_SOFTWARE : Apache/1.2.6
TZ : US/Eastern


What's the prob? Thanks!
Quote Reply
Re: CGI Prob In reply to
Make sure that your backup directory is set to 777 (chmod 777).

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: CGI Prob In reply to
Wazzo,

I'm just a no so experience links users however I had three links successful installations so I think I can help a little.
Below is your error message. I think you should check your links.cfg found in your admin directory. The line in the location error in wrong. see the double slash? pls to be remind you that there should no trailing slashes in any of your path configurations.

Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /disk35/usr/webigns/public_html//links/links2/admin/nph-build.cgi
Perl Version : 5.00404
Quote Reply
Re: CGI Prob In reply to
alwell,

what have "trailing slashes" to do with the error "Permission denied" ? Wink

but the double trailing slashes hmmmmmm...

------------------
ciao
Nicky
mse.nicky.net
www.nicky.net/forum german forum for GT Links



[This message has been edited by Nicky (edited December 16, 1999).]
Quote Reply
Re: CGI Prob In reply to
Hi all,
Just got through installing and am trying to build my pages. I experienced the error Wazzo did, fixed it. Then experienced the same error referring to index.count file. I also changed the permission on this file to 777. Was that a mistake?

So I try building again. It doesn't hang on index.count but I get the following message... and I don't even have a links.db.bak file. What's that about?

Backing up database . . . Backup exists for today.. SkippingDone.
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: /home/sites/pathtosite/links/cgi-bin/admin/data/links.db.bak. Reason: Permission denied
Script Location : /home/sites/pathtosite/links/cgi-bin/admin/nph-build.cgi
Perl Version : 5.00404

Thanks for your help,
Clark


------------------
----------------------------------------------
Freshwebproduce - A web design & production co.
Walla Walla, Washington
http://www.freshwebproduce.com
Quote Reply
Re: CGI Prob In reply to
hi,

you have to chmod 777 your backup directory

------------------
ciao
Nicky
mse.nicky.net
www.nicky.net/forum german forum for GT Links

Quote Reply
Re: CGI Prob In reply to
Howdy,
My backup directory is set at 777.

I've even done the code swap to nph-build.cgi suggested in the FAQ to supposedly take care of this very permission problem with links.db.bak. I'm getting the exact error message after the code swap as I was before. And I thought I'd found the solution! HA! 8^)

Clark

------------------
----------------------------------------------
Freshwebproduce - A web design & production co.
Walla Walla, Washington
http://www.freshwebproduce.com
Quote Reply
Re: CGI Prob In reply to
Yes, I am getting that very same error after I chmoded the backup directory to 777...

what should i do now?