403 forbidden - permissions?

shmish

Joined: 2005-12-18
Posts: 27
Posted: Mon, 2006-02-27 23:56

Hello,
I recently upgraded to Gallery2 2.1-rc-1b. Going through my albums, I started getting some 403 Forbidden errors when the thumbnails were loading. Searching these forums, I've come across two concepts. First, some people seem to have problems with 403 forbidden because of their Apache config - mod_dosevasive settings. Some other people have problems with permissions.

I contacted my host, and they didn't have any issues with 403 forbidden errors. I then found this post:

valiant wrote:
chmod the folder gallery2 is in to 755, chmod gallery2 755, chmod index.php, main.php, install/ , install/index.php all 755
usually it's like that. maybe something went wrong on your host.

I had the files and folders set to 755, except for "chmod the folder gallery2 is in". For me, this would be /www/ (ie www.dryfly.ca/gallery/ ).
So changed /www from 750 to 755. It seems to be working okay now. Now I have a couple of questions stemming from this. /public_html seems to be some type of mirror of /www, but their permissions are different. Is this normal? Should I change /public_html to 755 too? And I want to confirm that it is safe to have /www (and/or /public_html) set to 755. And if anyone can check out me gallery and let me know if it works okay for them...

Thanks


PHP version (e.g. 4.3.11): 4.4.1
PHPInfo Link (see FAQ): www.dryfly.ca/phpinfo.php
Webserver (e.g. Apache 1.3.33): 1.3.34
Database (e.g. MySql 4.0.11): 4.1.14 standard
Activated toolkits (e.g. NetPbm, GD):
Operating system (e.g. Linux): linux
Browser (e.g. Firefox 1.0): firefox 1.06, opera 8.52

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Tue, 2006-02-28 00:55

This is somethign weird your host has set up. some people like www, some like public_html. It's very weird that the permissions are different but just chmod them the same and it should be fine.

Your gallery is working fine from here and from your phpinfo, apache is using the public_html folder for its root so its probably safe to ignore the www folder.

http://ckdake.com/

If you found my help useful, please consider donating to Gallery.