Gossamer Forum
Home : Products : Links 2.0 : Discussions :

links.db

Quote Reply
links.db
Hi All
I have a small problem. Every time I do a build my links.db file is chmod'ed to 644 (a nobody file). This means that I can't access my data directory through ftp and have to keep ringing my server company. Is this an error with the script or my server. Help much appreciated.


------------------
Alastair Weller
Website Design, Domain Name Registration and Hosting
www.alastairweller.co.uk
Quote Reply
Re: links.db In reply to
Read the FAQ in the Resource Center that provides codes to maintain the permission of the links.db file to 666 (rw-rw-rw-).

Regards.

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: links.db In reply to
I'm having the same problem too - the FAQ is gone now since the new gossamer site build and I can't remember how I solved this last time.

Anyone recall? Could someone repost it?

Thanks

Quote Reply
Re: links.db In reply to
Man, I am addicted to getting this site up and have no patience...I need help. Anyone have a fix for this chmod problem since the resource center has taken down this FAQ?

Quote Reply
Re: links.db In reply to
Okay...for some reason my Reply was deleted since I posted it earlier today! UGH! Mad

Anyway...add the following codes:

Code:

else { chmod 0666, $db_links_name; }


AFTER the following codes:

Code:

while ( ) { print DBTMP; }
close DB;
close DBTMP;
}


in the following sub-routines:

sub build_update_ratings
sub build_update_newpop

in the nph-build.cgi file.

Regards,

Eliot Lee
Quote Reply
Re: links.db In reply to
That didn't do it for me. First I got an error about the permissions of the New/index.html file. So I set permissions on that back to 666. When I ran nph-build.cgi again I got:

In Reply To:
fatal error: Undefined subroutine &main::build_cat_dir called at /home/eachandevery/public_html/cgi-bin/sites/admin/nph-build.cgi line 815.
What does that mean?

Quote Reply
Re: links.db In reply to
In Reply To:
fatal error: Undefined subroutine &main::build_cat_dir called at /home/eachandevery/public_html/cgi-bin/sites/admin/nph-build.cgi
This means that you have either inadvertantly deleted the sub build_cat_dir routine or that your library links before sub main are incorrect.

And the codes I posted SHOULD DO it unless you are on a NT server where chmod commands do not work.

Regards,

Eliot Lee