提示You don't have permission to access /index.php on this server.

被坑了,Apache多站点配置,本来配置的很正常的,结果电脑重装以后在配置结果就不行了,查了n久还是不行,但最后还是找到原因了.

httpd.conf 中这样的

<Directory />
AllowOverride none
Require all granted
</Directory>

改成下面这段

<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
allow from all
</Directory>

还有一处地方,就是这个地方找了n久,大家如果出现上面改了还是403的话,下面这段也改改看吧.

Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>

改成下面这段

Order Deny,Allow
allow from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>

最主要的就是Deny from all 这玩意,改完后在看看有没有这个玩意了,有就把它改成allow from all这个基本就可以了.

提示You don't have permission to access /index.php on this server.

时间: 2024-10-20 06:16:17

提示You don't have permission to access /index.php on this server.的相关文章

apache 提示You don&#39;t have permission to access /test.php on this server.怎样解决

把denty改成allow httpd.conf文件中. <Directory "cgi-bin"> AllowOverride None Options None Order allow,denyDeny from all -->将所有的Deny改成Allow</Directory> apache 提示You don't have permission to access /test.php on this server.怎样解决

解决问题 “You don&#39;t have permission to access /index.html on this server.”

前几天装一个linux 企业版5.0安装了apache,打开测试页面的时候出现如下错误: Forbidden You don't have permission to access /index.html on this server. 开始我以为我配置出错,花半天时间都没有搞定,今天终于搞定了. 原因:index.html是用root用户建的文件,apache权限不够. 解决方法:更改文件权限:chmod 755 index.html 如果是WIN 2003下出现这个问题,请按以下方式解决 打

phpstudy无法访问主页,提示You don&#39;t have permission to access / on this server解决办法

1.输入localhost提示:You don't have permission to access / on this server. 新版phpStudy为了安全,取消Apache和nginx列出目录内容. phpStudy如何禁止或允许站点目录列表 请使用『其他选项菜单』-『phpStudy设置』-『允许目录列表』,打上对勾表示允许目录列表,去掉对勾表示禁止目录列表. 2.配置多域名的虚拟主机总是失败,提示You don't have permission to access / on

wamp不能使用phpmyadmin,提示“You don&#39;t have permission to access /phpmyadmin/ on this server.”

当你安装完成wamp后,打开localhost或ip时发现已经可以运行了 但想使用phpmyadmin时,发现提示如下内容: You don't have permission to access /phpmyadmin/ on this server. 解决办法: 打开如下文件: c:\wamp\alias\phpmyadmin.conf //这个就是你的wamp的安装目录下的内容 修改成这样: <Directory "c:/wamp/apps/phpmyadmin3.4.5/"

WampServer64提示You don&#39;t have permission to access

由于配置了php后,这里的“Deny from all”已经拒绝了一切连接.把该行改成“allow from all”,修改后的代码如下,问题解决. <Directory />     Options FollowSymLinks     AllowOverride None     Order deny,allow     allow from all </Directory> WampServer64提示You don't have permission to access

Apache 环境提示You don&#39;t have permission to access / on this server.

(本人只是在本地环境下遇到这个问题能这么处理,不确定服务器下如此修改是否会有安全问题) 找到apache配置文件,一般路径为 apache/httpd.conf ,搜索 "Deny from all",都修改为 allow from all ,如下所示 <Directory /> Options FollowSymLinks AllowOverride None Order deny,allow allow from all</Directory> .....

Apache问题(apache 提示403错误 You don&#39;t have permission to access /test.php on this server.)

<Files ~>AllowOverride AuthConfig FileInfo Indexs Limit OptionsOrder allow ,denyDeny from all-----------------注意:就是这儿!!--->把这行去掉或注释掉就行!!!</Files> Apache问题(apache 提示403错误 You don't have permission to access /test.php on this server.)

apache 2.4.23 只能本地访问,其他用户不能访问,提示You don&#39;t have permission to access

这个版本的httpd.conf的配置方法跟原版本的设置不一样了. 需要在目录安全配置中 修改为 Require all granted 比如  把Require local 修改为Require all granted. 特别要注意,需将httpd-vhosts.conf中的配置也要一同修改. apache 2.4.23 只能本地访问,其他用户不能访问,提示You don't have permission to access 原文地址:https://www.cnblogs.com/laoji

Apache Version: 2.4.33 提示You don&#39;t have permission to access / on this server 的错误

需要修改 apache的配置文件  httpd.conf 和 httpd-chosts.conf 这两个配置文件 1.将httpd.conf 中的denied 修改为 granted 2 .把 httpd-chosts.conf 中的require local 修改为 require all granted 然后就可以了 Apache Version: 2.4.33 提示You don't have permission to access / on this server 的错误 原文地址:h