Unable to view images

rnc3009

Joined: 2011-01-24
Posts: 5
Posted: Tue, 2013-08-20 20:31

I have a 3.0.9 install on debian

Operating system: Linux 3.2.0-4-amd64
Apache: Apache/2.2.22
PHP: 5.4.4-14+deb7u3
MySQL: 5.5.31-0+wheezy1
Graphics toolkit: imagemagick

This was a gallery2 install that has been upgraded and moved to a new server. The gallery3 upgrade has never worked properly.

At the moment I can access the site and all admin functions but I cannot see any images. I can browse the albums, but none of the pictures appear. The Apache logs show 403 errors. All the permissions appear correct as all the files and folders are owned by the same user as pages that work.

[20/Aug/2013:21:27:56 +0100] "GET /gallery3/var/thumbs/Show-Pics/SAM_1248.JPG?m=1364489307 HTTP/1.1" 403 264

Any help much appreciated.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2013-08-21 02:36

Does /gallery3/var/thumbs/Show-Pics/SAM_1248.JPG exist on the file system?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rnc3009

Joined: 2011-01-24
Posts: 5
Posted: Wed, 2013-08-21 08:29

It does. The problem appears to be with the htaccess as I have renamed the files in albums, thumbs and resizes and now the site works. This is the content of the htaccess in the albums directory

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule (.*) /gallery3/index.php?kohana_uri=/file_proxy/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
Order Deny,Allow
Deny from All
</IfModule>

 
beesatmsu

Joined: 2003-05-19
Posts: 58
Posted: Mon, 2013-08-26 14:53

I noticed today that anyone can download the original files (no water mark, large files) from /var/albums/? even if I log out. is this the correct behavior? I thought a regular user should only see what is in the resizes (with water mark, smaller).

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2013-08-26 16:08

only if you have permissions set for that album.
FAQ: Are my photos secure? They're right there on my website!

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
beesatmsu

Joined: 2003-05-19
Posts: 58
Posted: Mon, 2013-08-26 20:20

ok. thanks. the original admin window had the green checks and red -, greyed..I had to recheck them and now it seems to work properly.

upgraded all to 3.0.9 from 3.0.4.

Zach de BeeGuy

 
rnc3009

Joined: 2011-01-24
Posts: 5
Posted: Tue, 2013-08-27 08:29

Anyone know why the standard htaccess does not work for me?