Windows 7 Pro上的PHP 5.4.11 / Apache 2.4.2。 php文件只能在DocumentRoot中运行

时间:2013-07-22 18:38:14

标签: php

我刚开始玩的东西,所以请耐心等待。决定自学WAMP。安装并运行Apache 2.4.2确定。安装PHP 5.4.11确定。在Apaches httpd.conf中,我将我的documentroot路径从Apache默认改为" C:\ Web"在该文件夹中存在一个名为testsite的文件夹..这就是问题所在:我创建了一个名为info.php的文件来测试php运行正常

  • http://localhost/index.html运行正常
  • http://localhost/testsite/index.htm我运行正常
  • http://localhost/info.php运行正常
  • http://localhost/testsite/info.php DOESNT RUN

关于为什么同一个php文件在我的子文件夹中运行的任何帮助都是appr。

0 个答案:

没有答案