PHP错误:Forbidden You don't have permission to access / on this server.

原文:PHP错误:Forbidden You don't have permission to access / on this server.

今天老大让在xp下搭建一个FTP服务器,一波三折,最后终于在老大的帮助下搞定了。。。

其中通过ip访问的时候 提示 Forbidden You don‘t have permission to access / on this server.

找到一个解决方法,特此记录

php的配置文件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
    Allow from all

#允许所有访问
    Satisfy all
</Directory>

还有

<Directory "D:/Wamp5/www">

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn‘t give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don‘t remove
    Order Deny,Allow
    Deny from all
    Allow from 127.0.0.1

</Directory>

修改成

<Directory "D:/Wamp5/www">

    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    #   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn‘t give it to you.
    #
    # The Options directive is both complicated and important.  Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks

    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    #   Options FileInfo AuthConfig Limit
    #
    AllowOverride all

    #
    # Controls who can get stuff from this server.
    #
#   onlineoffline tag - don‘t remove
    Order Deny,Allow
#    Deny from all

#  Allow from 127.0.0.1
    Allow from all

</Directory>

然后保存,重启服务,在访问就解决了这个问题。

PHP错误:Forbidden You don't have permission to access / on this server.

时间: 2024-10-10 06:17:41

PHP错误:Forbidden You don't have permission to access / on this server.的相关文章

redhat centos apache 403 错误 Forbidden You don&#39;t have permission to access / on this server

redhat centos apache 403 错误 centos7 apache2.2.34源码包安装成功,确认进程已启动( ps -le | grep httpd) ,防火墙已关闭,但访问时报错: Forbidden  You don't have permission to access / on this server 原因为:安装目录/conf/httpd.conf配置文件中 User deamon Group deamon 选项没有修改,上述配置为默认配置,将其修改为 User t

HTTP错误:Forbidden You don&#39;t have permission to access …… on this server.

1.出现这种错误,一般用的web服务器是Apache 2.找到:apache配置文件,打开httpd.conf 文件,做如下修改: 第一处:找到 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all </Directory> 修改成 <Directory /> Options FollowSymLinks AllowOverri

server下apache2.4.*虚拟主机配置Forbidden You don&#39;t have permission to access / on this server.

前言: 继前面两节笔记之后,在配置一个虚拟主机时,这中间却遇见了一个问题,这里需要描述做一下笔记,刚刚安装的是Ubuntu server,apt-get下来的apache的版本是2.4.7,之前一直用的是apache2.2的,期间遇见过403错误,只是问题处理的方式方法有些不一样,于是这里就一时没有找到头绪.本文原创博客地址:http://www.cnblogs.com/unofficial官网地址:www.pushself.com) 403:没有权限访问 不说废话直接找主题: 首先我们来回顾一

蛋疼的 403 Forbidden You don’t have permission to access / on this server.

参考博文: a.http://www.linuxidc.com/Linux/2016-09/134827.htm 这个解释挺好 昨天配置新服务器:以为自己老手  就一步到位结果一直出现 403 Forbidden You don’t have permission to access / on this server. 百度所有的解决方法发现还是不行,没办法重新重头一步一步来找错误: 1.从http安装查找:这个最好 是在安装完成后显示下信息页 <?php phpinfo() ?> 我从这个信

MAMP &quot;403 Forbidden You don&#39;t have permission to access / on this server.&quot;

2015年01月22日 17:27:31 阅读数:3488 用MAMP搭建本地服务器的时候,设置好ip和端口等属性之后,浏览器访问,报 403错误: Forbidden You don't have permission to access / on this server. google之后,stackoverflow已有类似的问题:http://stackoverflow.com/questions/10873295/error-message-forbidden-you-dont-have

Forbidden You don&#39;t have permission to access / on this server

Apache: Forbidden You don't have permission to access / on this server 度娘了半天,屁用都没,都是老掉牙的. 最后google之,http://stackoverflow.com/questions/21551840/forbidden-you-dont-have-permission-to-access-on-this-server Found my solution thanks to Error with .htacce

mac osx Forbidden You don&#39;t have permission to access / on this server解决方法

(1)首先查看*.conf 是否有读写权限,如果没有要将文件赋予读写权限,比如 sudo chmod 777 localhost.conf (2)再查看/Users/username/Sites/localhost/文件夹是否有index.html文件,没有的话,创建一个,默认是打开index.html文件 (3)最后查看localhost配置文件 对于OSX 10.9 Apache 2.2 <VirtualHost *:80> DocumentRoot "/Users/xx/Sit

[php排错] Forbidden You don&#39;t have permission to access / on this server.

刚开始接触PHP,在搭建完环境后发现输入127.0.0.1可以访问界面,但是输入http://localhost却提醒无权访问,在百度之后发现是php中的httpd.conf的作用 在wamp中搜索发现有两个httpd.conf,于是把两个都改了,然后重启服务发现可以访问了,方法如下: <Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    Deny from all</Di

php错误:You don&#39;t have permission to access / on this server.

以前php环境崩溃了,重新装了个,打开第一个文件就出现: You don't have permission to access / on this server.错误,让我情以何堪啊,居然说我此台服务器上无权限,ok解决办法如下: 找到:apache文件,进入conf文件,打开httpd.conf 文件,做如下修改: <Directory />    Options FollowSymLinks    AllowOverride None    Order deny,allow    Den