Apache WAMP安装问题,403禁止

Apache WAMP安装问题,403禁止,apache,phpmyadmin,wamp,Apache,Phpmyadmin,Wamp,我已经成功地安装了WAMP,并且它按照预期工作,直到我按照教程尝试将它与Dropbox文件夹一起使用 由于这一挑战,我卸载、删除了所有文件,并在系统还原后重新安装了WAMP 我可以访问localhost,但不能访问localhost/phpmyadmin;我不断收到一个禁止的错误(403),并显示以下消息:您没有查看此目录的权限 事实上,我昨天整个下午和整个上午都在阅读谷歌的每一条搜索结果,寻找解决方案,但我仍然无法修复它 我已经尝试过一些常见的解决方案,比如修改配置文件,但都没有用 以下是我的

我已经成功地安装了WAMP,并且它按照预期工作,直到我按照教程尝试将它与Dropbox文件夹一起使用

由于这一挑战,我卸载、删除了所有文件,并在系统还原后重新安装了WAMP

我可以访问
localhost
,但不能访问
localhost/phpmyadmin
;我不断收到一个禁止的错误(403),并显示以下消息:
您没有查看此目录的权限

事实上,我昨天整个下午和整个上午都在阅读谷歌的每一条搜索结果,寻找解决方案,但我仍然无法修复它

我已经尝试过一些常见的解决方案,比如修改配置文件,但都没有用

以下是我的Apache错误日志的内容:

[Tue Jan 24 15:53:39 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:39 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:39 2012] [notice] Parent: Created child process 4992
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Child process is running
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Acquired the start mutex.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting 64 worker threads.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:50 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jan 24 15:53:50 2012] [notice] Child 4992: Exit event signaled. Child process is ending.
[Tue Jan 24 15:53:51 2012] [notice] Child 4992: Released the start mutex
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: All worker threads have exited.
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: Child process is exiting
[Tue Jan 24 15:53:52 2012] [notice] Parent: Child process exited successfully.
[Tue Jan 24 15:53:53 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:53 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:53 2012] [notice] Parent: Created child process 4576
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Child process is running
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Acquired the start mutex.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting 64 worker threads.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:54:01 2012] [error] [client ::1] client denied by server configuration: C:/WAMP/apps/phpmyadmin3.4.5/, referer: http://localhost/
120124 15:53:38 [Note] Plugin 'FEDERATED' is disabled.
120124 15:53:38 InnoDB: The InnoDB memory heap is disabled
120124 15:53:38 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120124 15:53:38 InnoDB: Compressed tables use zlib 1.2.3
120124 15:53:38 InnoDB: Initializing buffer pool, size = 128.0M
120124 15:53:38 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
120124 15:53:38  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
120124 15:53:41  InnoDB: Waiting for the background threads to start
120124 15:53:42 InnoDB: 1.1.8 started; log sequence number 0
120124 15:53:43 [Note] Event Scheduler: Loaded 0 events
120124 15:53:43 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log'  socket: ''  port: 3306  MySQL Community Server (GPL)
没有PHP日志

以下是MySQL错误日志的内容:

[Tue Jan 24 15:53:39 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:39 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:39 2012] [notice] Parent: Created child process 4992
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Child process is running
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Acquired the start mutex.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting 64 worker threads.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:40 2012] [notice] Child 4992: Starting thread to listen on port 80.
[Tue Jan 24 15:53:50 2012] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Tue Jan 24 15:53:50 2012] [notice] Child 4992: Exit event signaled. Child process is ending.
[Tue Jan 24 15:53:51 2012] [notice] Child 4992: Released the start mutex
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: All worker threads have exited.
[Tue Jan 24 15:53:52 2012] [notice] Child 4992: Child process is exiting
[Tue Jan 24 15:53:52 2012] [notice] Parent: Child process exited successfully.
[Tue Jan 24 15:53:53 2012] [notice] Apache/2.2.21 (Win32) PHP/5.3.8 configured -- resuming normal operations
[Tue Jan 24 15:53:53 2012] [notice] Server built: Sep 10 2011 11:34:11
[Tue Jan 24 15:53:53 2012] [notice] Parent: Created child process 4576
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Child process is running
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Acquired the start mutex.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting 64 worker threads.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:53:53 2012] [notice] Child 4576: Starting thread to listen on port 80.
[Tue Jan 24 15:54:01 2012] [error] [client ::1] client denied by server configuration: C:/WAMP/apps/phpmyadmin3.4.5/, referer: http://localhost/
120124 15:53:38 [Note] Plugin 'FEDERATED' is disabled.
120124 15:53:38 InnoDB: The InnoDB memory heap is disabled
120124 15:53:38 InnoDB: Mutexes and rw_locks use Windows interlocked functions
120124 15:53:38 InnoDB: Compressed tables use zlib 1.2.3
120124 15:53:38 InnoDB: Initializing buffer pool, size = 128.0M
120124 15:53:38 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
120124 15:53:38  InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39  InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120124 15:53:39  InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
120124 15:53:41  InnoDB: Waiting for the background threads to start
120124 15:53:42 InnoDB: 1.1.8 started; log sequence number 0
120124 15:53:43 [Note] Event Scheduler: Loaded 0 events
120124 15:53:43 [Note] wampmysqld: ready for connections.
Version: '5.5.16-log'  socket: ''  port: 3306  MySQL Community Server (GPL)

显然,您的服务器已配置为阻止IPv6环回地址:

[Tue Jan 24 15:54:01 2012][error][client::1]客户端被服务器配置拒绝:C:/WAMP/apps/phpmyadmin3.4.5/,参考:http://localhost/


尝试允许它,或者如果失败,尝试在您的网络接口上禁用IPv6。

检查.htaccess和httpd.conf文件,查看与phpmyadmin目录相关的允许/拒绝规则我已修改了允许、拒绝规则,但不起作用,虽然这对其他人来说似乎是一个常见的修复。你能发布你的错误日志条目吗?我已经将它添加到我的原始帖子中了。谢谢提供更多信息!您是否将index.php添加到httpd.conf中的DocumentIndex指令并重新启动?我猜index.php不存在,因此apache没有要加载的默认页面。让我知道。谢谢你的帮助。恐怕这一切都超出了我的想象:-/我用谷歌搜索了“禁用IPv6”,并在我的局域网连接属性面板中取消了IPv6框的勾选。到目前为止,这还没有解决任何问题。您的C:\WAMP\alias\phpmyadmin.conf文件的内容是什么?@JamesStanzaMiddleditch这就是问题所在。仅允许连接127.0.0.1。尝试将
Allow from::1
添加到行
Allow from 127.0.0.1
下面,事情应该会开始工作。我不知道这意味着什么,但它工作了!好几天来它一直在折磨我。非常感谢。