![]() |
|
403 Forbidden when viewing images - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: 403 Forbidden when viewing images (/thread-8317.html) |
403 Forbidden when viewing images - hebcat - 2011-02-28 Hi there, I'm working on my first install of ZenPhoto, and have managed to overcome several hurdles so far, using previous advice on the forum. But I'm stumped on this one issue -- I keep getting a "Forbidden" error when I try to see the picture. In the gallery view, the thumbnail won't show (though it is on the server; the upload did work). See: I've checked permissions on the album folder & subfolders are set to 777. Though they occasionally revert back to 740 I've noticed. Could this be the problem? My client's site is being hosted by easily on a Linux server. 403 Forbidden when viewing images - acrylian - 2011-02-28 Your problem is not the /albums folder, it is the /cache folder. Setup should try to set the right ones on installing. If you want to set them manually please see: 403 Forbidden when viewing images - hebcat - 2011-03-01 Thanks for the reply acrylian, It's not done the trick though -- I've just spent over an hour trying all different permissions between the /cache, /albums and /zp-core folder, and still it won't pull up the images. Some things that might be clues to the more initiated than myself! --
Thanks for any light shed. Cat 403 Forbidden when viewing images - hebcat - 2011-03-01 Oh also, I temporarily renamed the .htaccess file in the zenphoto folder ("/galleries") -- no change to the 403 message. 403 Forbidden when viewing images - acrylian - 2011-03-01 Yes, safe mode can cause such issue. You should ask your host to turn it off. To 6.: Yes, of course as that link is wrong, see the missing "albums": 403 Forbidden when viewing images - hebcat - 2011-03-01 To 6. Now that same path says "Forbidden"... Aaarh! :-) I'll get on easily's case about the php safe mode. Thanks again 403 Forbidden when viewing images - hebcat - 2011-03-07 Hi again, Here's the update on this -- Easily have responded and have confirmed that the PHP setting on the server is set to standard, and not safe-mode. I've asked them to change the zp-core, albums & cache folders to 755 (as I've understood from the article). They confirmed thay have done this. The photos still won't show up though ("forbidden") :-( However when I look at the properties of the above folders in WS_FTP, I've noticed that they're still not all 755: How can this keep resetting itself? I've not come across this before. And what can I try next? I'm loathe to suggest a different host to my client in case it's operator-error (me!). Thanks again for any suggestions. Cat 403 Forbidden when viewing images - acrylian - 2011-03-07 You have basically three options:
403 Forbidden when viewing images - hebcat - 2011-03-07 Thanks for that. Option 1 - Have tried to reupload the setup folder but it says that's forbidden too. I'll try and reupload the lot & just have a second ZP folder with a different name. Will keep you posted on how I get on. Option 2 - Have tried many a time to set the permissions via my FTP client. Every so often they reset themselves. Option 3 - Not too keen on this host, having to open a support ticket and they take a day or two to get back each time. PLUS!! I've installed ZenPhoto on my own website (different host), which I remembered has a MySQL database available, and it's worked first time, no issues. Seeing as I'll also need to installing ZenCart or CubeCart for this client, I think if I may suggest to her to just move hosts! 403 Forbidden when viewing images - hebcat - 2011-03-07 Ok, here's the update on the re-install: I've uploaded the freshly-downloaded ZP files (v 1.4.0.2), This time I kept the default name "/zenphoto", in case renaming it had mucked something up last time. It appeared to work smoother than the previous time; There were no PHP/MySQL warning at the very top of the page, as there had been at first the previous time. Also I simply ignored the "warnings" about magic-quotes, etc. Used zp2_ as the database field suffixes, so as not to interfere with the first install. Didn't delete setup. Same problem, the picture is 403-forbidden, though the listing is there, and the file is definitely on the server. Went back to setup, changed the permission settings to the less "strict" one (755 as I recall - planning to work my way down the list), hit apply. Now... everything in the /zenphoto folder comes up as "500 Internal server error". I can't see any more: the set up page, the admin area, not the gallery. But interestingly, in my FTP client, the 3 folders are now (seemingly) set to 755! (in this second install -- the original install is still wrong). Tried manually setting the permissions in my FTP client, but now it's just stuck on "500 Internal Server Error". Does this sound familiar & resolvable? Or am I just making life hard for myself with 'Easily' as the host? 403 Forbidden when viewing images - sbillard - 2011-03-08 Sorry to drop in late to this thread. (For those of you who do not know, I am recovering from some surgery.) The server is basically screwed up on its file/folder permissions with respect to executing WEB scripts. You might try You can try talking again to the host about what permissions should be used for running WEB scripts. But since your experience with then seems less than resplendent, moving to a different host would probably be a better path. (And then maybe they will listen to the next customer who has these problems.) 403 Forbidden when viewing images - hebcat - 2011-03-08 Thanks sbillard & acrylian, 403 Forbidden when viewing images - hebcat - 2011-03-14 Just an update... 403 Forbidden when viewing images - blndweasel - 2013-01-27 I wanted to post a follow up to this, as I was experiencing the problem myself recently, and none of the suggested causes were proving to be the solution. And personally, I don't think that moving hosts is a viable solution. In my case, the host had to modify a policy for the web service security module. The error read "Atomiccorp.com WAF rules: Bogus file extensions". This was triggered by the .jpg.php perceived multiple file extension in the URL of the image display page. After disabling that one rule on the site, everything returned to normal. Hope this helps others who have tried everything and still haven't found a solution. the blonde weasel |