Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php apache中的禁止错误_Php_Apache - Fatal编程技术网

Php apache中的禁止错误

Php apache中的禁止错误,php,apache,Php,Apache,我在Windows7上安装了Apache/PHP。我无法访问/localhost/index.php或/localhost。我可以从localhost打开任何其他.php文件,或者如果index.php位于documentroot的任何子文件夹中,我也可以打开它 以下是httpd.conf中的相关行 DocumentRoot "C:/public_html" <Directory /> Options FollowSymLinks Indexes AllowOver

我在Windows7上安装了Apache/PHP。我无法访问/localhost/index.php或/localhost。我可以从localhost打开任何其他.php文件,或者如果index.php位于documentroot的任何子文件夹中,我也可以打开它

以下是httpd.conf中的相关行

DocumentRoot "C:/public_html"
<Directory />
    Options FollowSymLinks Indexes 
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>
<Directory "C:/public_html">
    Options Indexes FollowSymLinks
    AllowOverride all
    Order allow,deny
    Allow from all
</Directory>
<IfModule dir_module>
    DirectoryIndex index.php index.html
</IfModule>
DocumentRoot“C:/public\u html”
选项跟随符号链接索引
允许超越所有
命令允许,拒绝
通融
选项索引跟随符号链接
允许超越所有
命令允许,拒绝
通融
DirectoryIndex.php index.html