- 论坛徽章:
- 0
|
环境:CentOS4.2 +apache2.052+php4.39+mysql4.025
我放了个test.php的测试文件在/var/www/html/下,在浏览器中测试了,可以正常显示
我把discuz!论坛的安装文件放到/var/www/html/bbs/下,并把bbs及它的字文件夹设为777
当我在地址栏里输入:http://127.0.0.1/bbs/install.php时出现如下错误:
- You don't have permission to access /bbs/install.php on this server.
- Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
复制代码
但当我把../bbs/下的install.php复制到/var/www/html/下时,在地址栏里输入:http://127.0.0.1/install.php 这时竟可以显示install.php 的页面
后来我就把bbs/下所有文件全部复制到html/下,再在地址栏里输入:http://127.0.0.1/install.php这时又出现:
- You don't have permission to access /bbs/install.php on this server.
- Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
复制代码
在网上我看见一些老外也有过我样的问题,但没有人回答
为什么会这样呀.......
httpd.conf有一段是这样的
<Directory "/var/www/html">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
[ 本帖最后由 discuz213 于 2005-11-16 00:11 编辑 ] |
|