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

Permissions for links.cfg

Quote Reply
Permissions for links.cfg
I have chaged the admin-dir to a secured (with htaccess), now all .cgi cannot access to links.cfg and teh db-directory. How to set that up?

Thanks, Chris

Quote Reply
Re: Permissions for links.cfg In reply to
The only .cgi files you should put in the password protected directoy are the following:

admin.cgi
nph-build.cgi
nph-email.cgi
nph-verify.cgi

All your other .cgi scripts should be in your /cgi-bin/links/ directory.

Regards,

Eliot Lee
Quote Reply
Re: Permissions for links.cfg In reply to
Ok, but how can I customize that with only the code:

# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/www/guxme.de/intern/admin";
$db_dir_url = "http://www.guxme.de/intern/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.guxme.de/cgi-bin/links";

So I get while loading the admin.cgi:
Error including libraries: Can't locate /www/guxme.de/intern/admin/db.pl in @INC (@INC contains: /www/guxme.de/intern/admin /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .) at /www/guxme.de/intern/admin/admin.cgi line 28.

Make sure they exist, permissions are set properly, and paths are set correctly.
--------------------------------
And from search.cgi I get:
Error including libraries: Can't locate admin/links.cfg in @INC (@INC contains: /www/guxme.de/cgi-bin/links /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .) at /www/guxme.de/cgi-bin/links/search.cgi line 36.

Make sure they exist, permissions are set properly, and paths are set correctly.


Quote Reply
Re: Permissions for links.cfg In reply to
As discussed a few times in this Forum...You need to use the complete absolute path for the links.cfg file in the first require line in the admin.cgi file....

Code:

require "/www/guxme.de/intern/admin/links.cfg";


Regards.

Eliot Lee
Quote Reply
Re: Permissions for links.cfg In reply to
Hi,

I have done that, but as you told me before, the file is:
require "/www/guxme.de/cgi-bin/links/links.cfg";

and all other files except admin.cgi and nph-*.cgi are in root/cgi-bin/links/

only the four files are in: root/intern/admin/

Can links handle this????

Quote Reply
Re: Permissions for links.cfg In reply to
Sounds like you don't have full path. Your server could require something before the /www portion. You may wanna check with their tech support.

Also, if you have telnet capability, go in, and go to the /admin directory. Then from the prompt, type pwd and that should give you a full path listing.

--mark

Installation support is provided via ICQ at UIN# 53788453. I will only respond on that number.
Quote Reply
Re: Permissions for links.cfg In reply to
No, everything works fine until I moved the admin-dir to a .htacess protected directory, if I use the links-readme, I have only the places to define:
$db_script_path = "/www/guxme.de/intern/admin";
$db_dir_url = "http://www.guxme.de/intern/admin";
$db_cgi_url = "http://www.guxme.de/cgi-bin/links";

But so the admin-cgi's in intern/admin doesn`t find the other cgi's like db.p, ... and the links.cfg

You have an idea?

Quote Reply
Re: Permissions for links.cfg In reply to
Hi Eliot,

I tried the following:
in links.cfg I set:
$db_script_path = "/www/guxme.de/cgi-bin/links";
$db_dir_url = "http://www.guxme.de/cgi-bin/links";
$db_cgi_url = "http://www.guxme.de/cgi-bin/links";

in admin.cgi I set:
require "/www/guxme.de/cgi-bin/links/links.cfg";

While loading admin.cgi I get the message: The requested URL /cgi-bin/links/admin.cgi was not found on this server.

I can chande all directories manually, but I think, that's no solution, what's wrong in my thinking?

Thanks lot, Chris

Quote Reply
Re: Permissions for links.cfg In reply to
Do you have cgiwrap installed by chance? If so, then you need to use the correct cgiwrap directory.

Regards,

Eliot Lee