apache php配置

WBOY
WBOYOriginal
2016-06-06 20:38:441085browse

以前配置好好apache和php了,以前运行没有问题,最近打开出现 You don't have permission to access /day12/array.php on this server. 怎么解决?

回复内容:

以前配置好好apache和php了,以前运行没有问题,最近打开出现 You don't have permission to access /day12/array.php on this server. 怎么解决?

看看你apache的版本,2.2和2.4中虚拟机的配置方案是不一样的。

问题可能出现在httpd.conf文件中,于是就又重新检查httpd.conf文件,终于让我发现了其中有这样一段:

<code><files>
AllowOverride AuthConfig FileInfo Indexs Limit Options
Order allow ,deny
Deny from all-----------------**注意:就是这儿!!--->把这行去掉或注    释掉就行!!!**
</files>
</code>

参考资料

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn