Forum Moderators: phranque

Message Too Old, No Replies

You don't have permission to access foo.php on this server.

sometimes it works, sometimes it doesn't

         

guarriman

11:25 am on Mar 27, 2008 (gmt 0)

10+ Year Member



Hi.

Using Apache/2.2 + PHP/5.2, I'm suffering an odd issue when accessing
an image generated with PHP.

When I access:
[foo.com...]

I get *SOMETIMES* this error message
-------
Forbidden
You don't have permission to access /apc.php on this server.
------

This is my Apache configuration (I use Plesk)
-----------------
DocumentRoot "/var/www/vhosts/foo.com/httpdocs/web"
<Directory "/var/www/vhosts/foo.com/httpdocs/web">
php_admin_value open_basedir "/var/www/vhosts/foo.com/httpdocs:/tmp:/usr/share/pear/plugins:/usr/share/php/plugins"
Order Allow,Deny
Allow from all
AllowOverride all
DirectoryIndex index.php
</Directory>
------------------

Most of times I access ok to the image, without any error message. Any similar experience?

Thank you very much.