File does not exist: /var/www/html/blah/gallery2/0

NEComputerService

Joined: 2008-03-21
Posts: 17
Posted: Mon, 2009-08-17 23:27

After locking down my Fedora Core10 server, I'm getting the following error in my apache error log(s):

File does not exist: /var/www/html/blah/gallery2/0

It appears that Gallery2 either generates or expects this, and other numerical directories, based on the number of items in an album. For example, if my album has 4 subalbums, it expects directories 0, 1, 2, and 3 to be in the base_dir of gallery2.

Can you shed me some knowledge on what Gallery2 is doing and how I can fix this error?

Gallery version = 2.2.4 core 1.2.0.6
PHP version = 5.2.9 apache2handler
Webserver = Apache/2.2.11 (Fedora)
Database = mysqli 5.0.83, lock.system=database
Toolkits = ArchiveUpload, Dcraw, Exif, Getid3, ImageMagick, LinkItemToolkit, NetPBM, Thumbnail, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux necomputerservice.com 2.6.27.29-170.2.78.fc10.i686 #1 SMP Fri Jul 31 04:40:15 EDT 2009 i686
Default theme = matrix
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080317 Fedora/3.0.13-1.fc10 Firefox/3.0.13
Rows in GalleryAccessMap table = 412
Rows in GalleryAccessSubscriberMap table = 152
Rows in GalleryUser table = 5
Rows in GalleryItem table = 117
Rows in GalleryAlbumItem table = 43
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 6136
Posted: Tue, 2009-08-18 02:07

Gallery needs to be able to write to the data directory you setup during installation to store albums and other info.
It looks as if you did not take the advice lent on the installer to place your g2data directory outside of your public webspace to construct an "image firewall"
it looks as though you are using your gallery2 directory instead.
but to fix this: chmod -R 0777 /var/www/html/blah/gallery2/

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

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Tue, 2009-08-18 04:56
Quote:
Gallery version = 2.2.4 core 1.2.0.6

You need to upgrade as well

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team