安装好 wampserver,启动绿色。(安装在D:/wamp)
在 D:/wamp/www 下创建目录thinkphp,解压缩 thinkphp到这个目录。修改 wamp 的 apache 的 httpd.conf, 加入<VirtualHost *:80>
DocumentRoot"D:\wamp\www\thinkphp\public"
ServerName www.tp5.com
</VirtualHost>重启 wamp, 橙色。 apache 的errorlog中显示: AH01797: client denied by server configuration 错误。 请问我该怎么整,多谢牛人们! [mpm_winnt:notice] [pid 10468:tid 364] AH00456: Apache Lounge VC14 Server built: Jul 1 2016 11:09:37
[core:notice] [pid 10468:tid 364] AH00094: Command line: 'D:\\wamp\\bin\\apache\\apache2.4.23\\bin\\httpd.exe -d D:/wamp/bin/apache/apache2.4.23'
[mpm_winnt:notice] [pid 10468:tid 364] AH00418: Parent: Created child process 4380
[auth_digest:notice] [pid 4380:tid 188] AH01757: generating secret for digest authentication ...
[mpm_winnt:notice] [pid 4380:tid 188] AH00354: Child: Starting 64 worker threads.
[access_compat:error] [pid 4380:tid 888] [client ::1:54581] AH01797: client denied by server configuration: D:/wamp/www/TP5.0/application/
[access_compat:error] [pid 4380:tid 888] [client ::1:54581] AH01797: client denied by server configuration: D:/wamp/www/TP5.0/thinkphp/
[access_compat:error] [pid 4380:tid 900] [client ::1:54644] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/application/
[access_compat:error] [pid 4380:tid 900] [client ::1:54644] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/thinkphp/
[access_compat:error] [pid 4380:tid 900] [client ::1:54681] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/application/
[access_compat:error] [pid 4380:tid 900] [client ::1:54681] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/thinkphp/
[mpm_winnt:notice] [pid 10468:tid 364] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[mpm_winnt:notice] [pid 4380:tid 188] AH00364: Child: All worker threads have exited.
[mpm_winnt:notice] [pid 10468:tid 364] AH00430: Parent: Child process 4380 exited successfully.
在 D:/wamp/www 下创建目录thinkphp,解压缩 thinkphp到这个目录。修改 wamp 的 apache 的 httpd.conf, 加入<VirtualHost *:80>
DocumentRoot"D:\wamp\www\thinkphp\public"
ServerName www.tp5.com
</VirtualHost>重启 wamp, 橙色。 apache 的errorlog中显示: AH01797: client denied by server configuration 错误。 请问我该怎么整,多谢牛人们! [mpm_winnt:notice] [pid 10468:tid 364] AH00456: Apache Lounge VC14 Server built: Jul 1 2016 11:09:37
[core:notice] [pid 10468:tid 364] AH00094: Command line: 'D:\\wamp\\bin\\apache\\apache2.4.23\\bin\\httpd.exe -d D:/wamp/bin/apache/apache2.4.23'
[mpm_winnt:notice] [pid 10468:tid 364] AH00418: Parent: Created child process 4380
[auth_digest:notice] [pid 4380:tid 188] AH01757: generating secret for digest authentication ...
[mpm_winnt:notice] [pid 4380:tid 188] AH00354: Child: Starting 64 worker threads.
[access_compat:error] [pid 4380:tid 888] [client ::1:54581] AH01797: client denied by server configuration: D:/wamp/www/TP5.0/application/
[access_compat:error] [pid 4380:tid 888] [client ::1:54581] AH01797: client denied by server configuration: D:/wamp/www/TP5.0/thinkphp/
[access_compat:error] [pid 4380:tid 900] [client ::1:54644] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/application/
[access_compat:error] [pid 4380:tid 900] [client ::1:54644] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/thinkphp/
[access_compat:error] [pid 4380:tid 900] [client ::1:54681] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/application/
[access_compat:error] [pid 4380:tid 900] [client ::1:54681] AH01797: client denied by server configuration: D:/wamp/www/thinkphp/thinkphp/
[mpm_winnt:notice] [pid 10468:tid 364] AH00422: Parent: Received shutdown signal -- Shutting down the server.
[mpm_winnt:notice] [pid 4380:tid 188] AH00364: Child: All worker threads have exited.
[mpm_winnt:notice] [pid 10468:tid 364] AH00430: Parent: Child process 4380 exited successfully.
改成下面这样试试
DocumentRoot "D:/wamp/www/thinkphp/public"
可以把Directory中的
Order deny,allow
Allow from all
Allow from host ip
换成
Require all granted
Require host ip
试试