【发布时间】:2012-02-17 14:49:32
【问题描述】:
我已成功安装 WAMP,它可以正常工作,直到我按照教程尝试将它与 Dropbox 文件夹一起使用。
由于该挑战,我已卸载、删除所有文件,并在系统还原后重新安装了 WAMP。
我可以访问 localhost,但不能访问 localhost/phpmyadmin;我不断收到 禁止错误 (403) 并显示以下消息:you do not have permission to view this directory。
从字面上看,我昨天整个下午和整个上午都在阅读我能找到的每一个谷歌搜索结果,但我仍然无法修复它。
我已经尝试过修改配置文件等常见的解决方案,都无济于事。
以下是我的 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/
没有 PHP 日志。
以下是MySQL错误日志的内容:
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)
【问题讨论】:
-
检查 .htaccess 和 httpd.conf 文件中与 phpmyadmin 目录相关的允许/拒绝规则
-
我已经修改了允许、拒绝规则,但没有奏效,尽管这似乎是其他人的常见修复。
-
您可以发布您的 error_log 条目吗?
-
我已将其添加到我的原始帖子中
-
感谢您提供更多信息!您是否将 index.php 添加到 httpd.conf 中的 DocumentIndex 指令并重新启动?我猜 index.php 不存在,因此 apache 没有要加载的默认页面。告诉我。
标签: apache phpmyadmin wamp