apache+php5+mysQL

来源:百度知道 编辑:UC知道 时间:2024/06/03 05:58:29
Forbidden
You don't have permission to access / on this server.
Apache/2.0.52 (Win32) PHP/4.3.9 Server at 127.0.0.1 Port 80

你的Apache网站根目录没有设置访问权限,打开Apache目录下的conf文件夹里的httpd.conf文件,找到下面这段语句块,它在DocumentRoot的下面几行位置,假设你的DocumentRoot 是"C:/Web/www" 。 把里面的deny from all 改为 Allow from all。重启服务器就可以了。

<Directory "C:/Web/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