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

Permission Error

Quote Reply
Permission Error
Sorry for my ignorance guys.

Whenever I run "Build All" I get this error:
CGI ERROR
==========================================
Error Message : unable to open count file: '/home/catalogs/public_html/cgi-bin/links/admin/data/hits/index.count'. Reason: Permission denied
Script Location : /home/catalogs/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.006001


I have cgi-bin/links set at 777
I have cgi-bin/links/admin set at 777

Can you help me work through it?



Quote Reply
Re: Permission Error In reply to
Uh...READ the README file again...

/cgi-bin/links -> 755
/cgi-bin/links/admin -> 755
/cgi-bin/links/admin/backup -> 777
/cgi-bin/links/admin/hits -> 777
/cgi-bin/links/admin/ratings -> 777

Since you are on a UNIX server, the folder permissions do not propegate down to other folders within folders. In Windows server, this is another story.

Regards,

Eliot Lee
Quote Reply
Re: Permission Error In reply to
Man you're fast..

Thanks..actually I should have mentioned I had set those to the permissions as per readme file before but I got the same errpr so I tried 777.

Ok, back to 755 and same error...

Here are my paths, do you see anything wrong?

# Paths and URL's to Important Stuff
# --------------------------------------------------------
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/home/catalogs/public_html/cgi-bin/links/admin";
$db_dir_url = "http://www.catalogs-for-free.com/cgi-bin/links/admin";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.catalogs-for-free.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/home/catalogs/public_html/links";
$build_root_url = "http://www.catalogs-for-free.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/New";
$build_new_url = "$build_root_url/New";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/Cool";
$build_cool_url = "$build_root_url/Cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/Ratings";
$build_ratings_url = "$build_root_url/Ratings";


Still getting the same error:
CGI ERROR
==========================================
Error Message : unable to open count file: '/home/catalogs/public_html/cgi-bin/links/admin/data/hits/index.count'. Reason: Permission denied
Script Location : /home/catalogs/public_html/cgi-bin/links/admin/nph-build.cgi
Perl Version : 5.006001


Quote Reply
Re: Permission Error In reply to
You will need to chmod the hits directory to 777 and index.count to 666

Thanks.
Quote Reply
Re: Permission Error In reply to
Duh! Like I already mentioned! Tongue

Regards,

Eliot Lee
Quote Reply
Post deleted by Limp In reply to
Quote Reply
Re: Permission Error In reply to
But I sure as hell did mention the hits directory, which you should've rephrased your REPLY to the following:

In Reply To:

In addition to what Eliot stated about the hits folder, you also need to make sure that you have the index.count file in there and the permission is set to 666....


rather than blatantly trying to repeat my advice and waste GT bandwidth/disk space, and in addition, the permission you gave for the INDEX.COUNT file is WRONG....it only needs to be 644 on most UNIX/LINUX/COBALT web servers.

Regards,

Eliot Lee
Quote Reply
Re: Permission Error In reply to
In Reply To:

index.count isn't chmodded correctly then it will still poduce an error


Uh...wrong again, I am afraid...

Regards,

Eliot Lee
Quote Reply
Post deleted by Limp In reply to
Quote Reply
Re: Permission Error In reply to
Uh...I was not mistaken. yea, I neglected to state that the index.count should be in the hits folder. But other than that, my advice was accurate, which I cannot say about your advice. Your permission suggestion was dead wrong in most cases/servers.

Also, Andy, it takes a bigger man to maintain "handles" rather than switching...without clarifying who they really are.

bye!

Regards,

Eliot Lee