You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by thomas Armstrong <ta...@gmail.com> on 2008/03/27 12:21:15 UTC

[users@httpd] You don't have permission to access foo.php on this server.

Hi.

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

When I access:
http://www.foo.com/apc.php?IMG=1&1206615989

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

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

Thank you very much.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: You don't have permission to access foo.php on this server.

Posted by thomas Armstrong <ta...@gmail.com>.
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>
------------------

On Thu, Mar 27, 2008 at 12:21 PM, thomas Armstrong <ta...@gmail.com> wrote:
> Hi.
>
>  Using Apache/2.2 + PHP/5.2, I'm suffering an odd issue when accessing
>  an image generated with PHP.
>
>  When I access:
>  http://www.foo.com/apc.php?IMG=1&1206615989
>
>  I get *SOMETIMES* this error message
>  -------
>  Forbidden
>  You don't have permission to access /apc.php on this server.
>  ------
>
>  But most of times I access ok to the image, without any error message.
>  Any similar experience?
>
>  Thank you very much.
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org