Forbidden You don't have permission to access /localhost/plan/index2.php on this server.

当你访问不是这台服务器的时候,会出现

这时候该怎么办呢?

下面介绍解决方法

php+apache 运行php网页事出现以下异常:

Forbidden
You don't have permission to access /php/php-cgi.exe/index.php on this serve


请修改apache的httpd.conf文件,把原来:
<Directory />
   Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all</Directory>
改为如下:
<Directory />
    Options FollowSymLinks
    AllowOverride None
    ### Order deny,allow
    ### Deny from all
    ### Satisfy all</Directory>

把PHP下面的php.ini下的:
short_open_tag=off;修改成on

重启apache,问题解决了


你可能感兴趣的:(apache,PHP,服务器,Access)