Restore Default Folder Persmissions

timecook

Joined: 2005-01-17
Posts: 4
Posted: Mon, 2010-08-30 04:02

Please fill out the following form and take a look at the linked pages. The more information you supply, the better we can help you. Please post issues about errors using Gallery 2 in the Troubleshooting Forum. Remove this FAQ information from your post before submitting.

FAQ:
- How can I find a solution for my problem?
Visit http://codex.gallery2.org/index.php/Gallery2:How_Tos and take a look at the FAQ and other documentation pages
Also try your luck with the advanced search function of this website
- What information is required when asking for help in the forums?
http://codex.gallery2.org/index.php/Gallery2:faq#What_information_is_required_when_I_ask_for_help_in_the_forums.3F
- You can copy and paste a lot of the required information from "Site Admin" -> "Maintenance" -> "System Information" if your G2 is up and running.


Gallery URL = http://www2/gallery2/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.1 apache2handler
Webserver = Apache/2.2.14 (Fedora)
Database = mysqli 5.1.41, lock.system=flock
Toolkits = ArchiveUpload, Exif, ImageMagick
Acceleration = none, none
Operating system = Linux www2 2.6.31.9-174.fc12.x86_64 #1 SMP Mon Dec 21 05:33:33 UTC 2009 x86_64
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8
Rows in GalleryAccessMap table = 12
Rows in GalleryAccessSubscriberMap table = 3295
Rows in GalleryUser table = 2
Rows in GalleryItem table = 3295
Rows in GalleryAlbumItem table = 157
Rows in GalleryCacheMap table = 0
Gallery version (not just "2"):
Browser (e.g. Firefox 2.0): not relavent

my gallery and the assocaited other directories are installed in /var/www/* ... I inadvertantly ran chmod -R 777 . here, I am trying to figure out what the appopropraite permissions are for gallery.

Any help would be greatly appreciated.

Scott

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-30 04:16

your gallery2 directory should be:
files: 644
find . -type f -print | xargs chmod 644
directories: 755
find . -type d -print0 | xargs -0 chmod 755

g2data should be 777 recursively.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2