Php Can';无法访问本地主机

Php Can';无法访问本地主机,php,mysql,apache,localhost,http-status-code-403,Php,Mysql,Apache,Localhost,Http Status Code 403,我昨天在本地主机上做了一个项目,一切都很好,我可以顺利完成。但今天,当我试图打开我的网页的任何文件或访问localhost时,我得到了 403 Forbbiden You don't have permission to access / on this server. Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80 P.>奇怪的PAR是我实际上可以进入本地主机/PHPMyAdmin < /P> Apache错误日志显示:

我昨天在本地主机上做了一个项目,一切都很好,我可以顺利完成。但今天,当我试图打开我的网页的任何文件或访问localhost时,我得到了

403 Forbbiden
You don't have permission to access / on this server.
Apache/2.4.9 (Win32) PHP/5.5.12 Server at localhost Port 80
P.>奇怪的PAR是我实际上可以进入本地主机/PHPMyAdmin < /P> Apache错误日志显示:

[Sun May 25 14:18:04.111705 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00455:
Apache/2.4.9 (Win32) PHP/5.5.12 configured -- resuming normal operations
[Sun May 25 14:18:04.268714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00456: Apache     Lounge VC11 Server built: Mar 16 2014 12:13:13
[Sun May 25 14:18:04.268714 2014] [core:notice] [pid 4996:tid 396] AH00094: Command     line: 'c:\\wamp\\bin\\apache\\apache2.4.9\\bin\\httpd.exe -d     C:/wamp/bin/apache/apache2.4.9'
[Sun May 25 14:18:04.273714 2014] [mpm_winnt:notice] [pid 4996:tid 396] AH00418:     Parent: Created child process 1152
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/Apache24/docs/dummy-host2.example.com] does not exist
AH00112: Warning: DocumentRoot [C:/wamp/vhost] does not exist

您可能缺少对文件夹的权限。请尝试授予该文件夹775权限。您错误配置了vHost的所有文档根。如果您正在运行该服务器,请重新配置vhost。如果你不知道发生了什么,你有没有试过一次又一次地关掉它?如果没有帮助,请重新安装wamp。@hakre谢谢,我试图重新配置vhost,但这会让一切变得更糟,所以我重新安装了wamp,现在它可以工作了,谢谢。我认为,如果你先把一切搞砸,学习会更好。提示:将配置文件置于版本控制之下。然后,您可以比较更改的内容,从而更好地发现引入错误的地方。