配置完Apache+PHP后!出现了这个问题!请问怎样解决呢?

maxid 2002-05-14 12:57:59
Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------

Apache/1.3.24 Server at www.kernel.org.cn Port 80

我输入127.0.0.1后就这样了!应该看到一些目录和文件才对的!为什么会这样呢!请问各位学长,是什么原因呢!怎样解决呢?
...全文
20 点赞 收藏 8
写回复
8 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
maxid 2002-05-15
呵呵!问题已经解决了!我回来就给分!感谢你们!
回复
sunblue 2002-05-15
hehe,都答完了,我就不答了
回复
小果老 2002-05-15
这是因为目录下没有index.htm文件,你的配置中没有允许列目录,所以显示无权限,你做个index文件放进去就好了
回复
LeeMaRS 2002-05-14
这是好事呀.列Index出来是很危险的.

如果你执意要打开 请看以下部分:

<Directory "E:/server/program/Apache/htdocs">

#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options FollowSymLinks MultiViews // 注意 就是这里了!!!!!!!!

#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None

#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>

请将
Options FollowSymLinks MultiViews
改为
Options FollowSymLinks MultiViews Indexes

重启Apache即可

回复
maxid 2002-05-14
没人会吗?
回复
maxid 2002-05-14
Not Acceptable
An appropriate representation of the requested resource / could not be found on this server.
Available variants:

index.html.ca , type text/html, language ca
index.html.cz , type text/html, language cz
index.html.de , type text/html, language de
index.html.dk , type text/html, language da
index.html.ee , type text/html, language et
index.html.el , type text/html, language el
index.html.en , type text/html, language en
index.html.es , type text/html, language es
index.html.fr , type text/html, language fr
index.html.he.iso8859-8 , type text/html, language he, charset iso-8859-8
index.html.it , type text/html, language it
index.html.ja.jis , type text/html, language ja, charset iso-2022-jp
index.html.kr.iso-kr , type text/html, language kr, charset iso-2022-kr
index.html.lu , type text/html, language ltz
index.html.nl , type text/html, language nl
index.html.nn , type text/html, language nn
index.html.no , type text/html, language no
index.html.po.iso-pl , type text/html, language pl, charset iso-8859-2
index.html.pt , type text/html, language pt
index.html.pt-br , type text/html, language pt-br
index.html.ru.cp-1251 , type text/html, language ru, charset windows-1251
index.html.ru.cp866 , type text/html, language ru, charset cp866
index.html.ru.iso-ru , type text/html, language ru, charset iso-8859-5
index.html.ru.koi8-r , type text/html, language ru, charset koi8-r
index.html.ru.ucs2 , type text/html, language ru, charset ucs-2
index.html.ru.ucs4 , type text/html, language ru, charset ucs-4
index.html.ru.utf8 , type text/html, language ru, charset utf-8

--------------------------------------------------------------------------------

Apache/1.3.24 Server at www.kernel.org.cn Port 80
回复
maxid 2002-05-14
DocumentRoot "D:/phpserver/wwwroot"
LoadModule php4_module d:/phpserver/PHP/sapi/php4apache.dll
AddModule mod_php4.c
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
回复
sunblue 2002-05-14
你给目录建index没有,
就是文件夹的选项里面有一项的,如果没有的话,就不会看到
Forbidden
You don't have permission to access / on this server.
而且这个问题不一定是index的问题,你把你改动的那几项贴一下把
回复
相关推荐
发帖
基础编程
创建于2007-09-28

2.1w+

社区成员

从PHP安装配置,PHP入门,PHP基础到PHP应用
申请成为版主
帖子事件
创建了帖子
2002-05-14 12:57
社区公告
暂无公告