Access Denied. (i.php) !!

Hello guys i need some help here please as i've got this problem where i can't access my photos when i upload them..

here is my gallery's url and it works fine
http://alhazzaa.net/gallery/

but when i click on the picture's thumbnail it shows nothing black space only like this:
http://alhazzaa.net/gallery/flowers/bee.jpg.php

and when i tried to access the link of the image:
http://alhazzaa.net/gallery/zp-core/i.php?a=flowers&i=bee.jpg&s=100&cw=85&ch=85&q=75&t=1 , and instead i got a page saying
" ERROR
The4 requested URL could not be retrieved .. access denied!"

btw all directories chmods are set to 750
don't know what's goin on ! thanks guys

Comments

  • acrylian Administrator, Developer
    Well, probably your server sadly does not support these stricter permissions or the "user" is not set correctly. You might have to lower them (see the troubleshooting as well) and/or contact your host.
  • acrylian, no please lol, i incredibly love this gallery and there must be a way to get it working:D ...

    i've got a wordpress blog and it's working just fine so i think this. i'll contact my host and search for some info about stricter user permissions and see. there must be a way :D
  • i tried to btw all files in zp-core directory can be viewed except the i.php file!

    i also tried to play with the .htaccess file but no luck yet.

    btw my host is running php version 5.2.13 on Apache 2.2.15 (Unix) so it's not that old
  • acrylian Administrator, Developer
    What is the chmod of that file? If you haven't see also here http://www.zenphoto.org/2009/03/troubleshooting-zenphoto/#29
  • the "useage" of i.php is somewhat different from most of the Zenphoto scripts in that it is used to "display" an image. Captcha is also done this way, so you might look to see if captcha images are showing.

    It is possible that the server is not configured to allow i.php to delier the imate content to the browser. If so, this is something you host will have to help you resolve.

    I believe this topic has shown up on the forum before, but I do not remember if anyone posted the "fix".
  • acrylian: i.php's chomd is 644 at the moment but i tried so many other chomds not even 777 seemed to get it displayed!. And thanks for the link i changed all directories chomds to 755 but still no luck yet. thanks

    sbillard: well yep not even the captcha is showing. if my host couldn't help me with this would you think that i would be able to customize the i.php file to get it working? and what would you suggest that i need to get rid of i mean what is it that the server doesn't like in the i.php file that i can see another way of doing it? thank you :)
  • back with some really weird news! the server blocks me from seeing the i.php file even if when the file doesn't exist!! i mean i changed the name of the i.php file to i-.php and when i go to the i.php address i get the access denied message! i think solving it is closer! :D
  • Well, first I would suggest never to change core files. There should really be no need to in the first place.

    Second, if your host won't work with you to figure out your problem, then to be quite honest, they must not be a very good host. They really should be able to help you with setting up software to work with their server's settings.

    As to why your last case would be happening, I can't really say, but I do see in the troubleshooting article this tidbit:

    Some servers are configured so that scripts cannot be executed from folders with weak permissions. We suggest you start with the strictest permissions and relax them if that causes permissions errors. Unfortunately, there are many permutations of how servers can be configured and not all are reasonable or rational. You may have to experiment to see what works for your situation.

    It may be that your server is preventing anything with a .php extension from executing depending on the directory's permissions. Whether that affects non-existent files, I'm unsure; regardless, as stated above, you will have to find a suitable set of permissions for your server. Your host really should be able to provide you with that information.
  • pk this is starting to drive me crazy!, i thought about reinstalling the whole thing again but guess what? even without any of the gallery's files. it's still giving me the access denied page when i go for the i.php url! what's the deal now? my website is haunted or the file name i.* isn't allowed i really don't get it..

    and i tried to clean the temp files and used different browsers

    hi kagutsuchi, i was just trying because quite frankly i like this gallery a lot and i'm so desperate about getting it to work!

    and i was just saying 'in case' my host won't help to see what is possible to be done.

    and my server allows .php files

    cheers guys
  • Access denied is a server security "thing". So you are really going to have to work with your host to get it straightened out.

    However, one possible thing to try is to be sure the mod_rewrite option is unselected and delete your .htaccess file(s). Malformed .htaccess files can cause this kind of issue.
  • acrylian Administrator, Developer
    AZ, sorry that you have this trouble. We hope you get it sorted out with the help of your host maybe.

    It does not really help but I can tell that Zenphoto works normally quite fine on standard shared hosting without any complicated tweaking (at least those I know over here in Germany).
  • thanks very much guys it turned out that the problem is from my host side and zenphoto code is not to blame.

    thanks again for your work on this gallery can't wait to get it working on my site. cheers
  • Did they tell you what was wrong? If so, posting it here might help the next guy who gets into this bind.
Sign In or Register to comment.