Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Build problem #@%A^

Quote Reply
Build problem #@%A^
Im having a small problem on a server,
Everything works other than after I add a cat and link , click build this is the message im getting.
CGI ERROR
==========================================
Error Message : Unable to copy links backup. Reason: Permission denied
Script Location : /www/com/somewhere/www/cgi/admin/nph-build.cgi
Perl Version : 5.00503

Environment Variables
-------------------------------------------
DOCUMENT_ROOT : /www/net/main/www/
GATEWAY_INTERFACE : CGI/1.1

The problem with document_root environment variable its set to the other path
IS their a way i can work around this ?
I have looked over the links cfg and nphbuild.cgi and havent seen anywhere that would change this .....

Thanks



------------------
Hey I'm trying leave me alone!!
Quote Reply
Re: Build problem #@%A^ In reply to
1) Make sure that you have the correct values (absolute/virtual paths) for your variables in the links.cfg file.

_path = ABSOLUTE PATH
_url = VIRTUAL PATH WITH HTTP://DOMAIN/DIRECTORY

2) Make a copy of the links.db file called links.db.bak and save the permissions to 666 (rw-rw-rw-).

Regards,

------------------
Eliot Lee
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------











Quote Reply
Re: Build problem #@%A^ In reply to
Again...I think that you are confusing ABSOLUTE and VIRTUAL paths in your links.cfg file.

Please save your links.cfg as a text file, upload it a publicly accessible directory (so we can view it), and then post the URL to this file.

Regards,

------------------
Eliot Lee
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------











Quote Reply
Re: Build problem #@%A^ In reply to
It will build the links I add or even submit using the add.cgi.
It will not build the homepage or what's cool or new pages. I get Permission denied
Nor will it backup tried what you said.
And the ABSOLUTE PATH and URLS are right.
Double checked everything a few times over.

This is what the server admin said:
" could be using the document_root environment variable as the home dir, which wont' work because it is set to
gamehouse.net by default and can't be changed"
So its trying to access his DOCUMENT_ROOT : /www/net/gamehouse/www/
insted of going to your path
??


------------------
Hey I'm trying leave me alone!!
Quote Reply
Re: Build problem #@%A^ In reply to
Hello again and thanks for you help
here is the url to the file

http://www.zo8.com/testing/links.txt
Quote Reply
Re: Build problem #@%A^ In reply to
Try changing the following:

Code:
$db_script_path = "/www/com/mysite/www/cgi/admin";

to the following:

Code:
$db_script_path = "/www/com/mysite/cgi/admin";

And change the following:

Code:
build_root_path = "/www/com/mysite/www/links";

to the following:

Code:
build_root_path = "/www/com/mysite/links";

Regards,

------------------
Eliot Lee
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------











Quote Reply
Re: Build problem #@%A^ In reply to
nope thats the right path im using belive it or not Smile
I have a few scripts running on this site now.
With that change i get
Error including libraries: Can't locate at that path setting
and the admin page will not load.

Thanks again.
Quote Reply
Re: Build problem #@%A^ In reply to
Again...double check with your hosting company and ask them for the following information:

1) Absolute Path
2) Virtual Path

to your account.

Also, refer to your hosting company's documentation regarding custom cgi/perl scripts.

I really can't diagnose the problem unless you have the "absolute" correct information from your hosting company.

Regards,

------------------
Eliot Lee....
* Check Resource Center
* Search Forums