1

我试图在 localhost 中设置 CakePHP。它工作得很好,除非页面转到需要读取数据库的页面。

它只是显示:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@dummy-host.example.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

这是错误日志:

[Thu May 09 12:07:44 2013] [notice] Parent: Received shutdown signal -- Shutting down the server.
[Thu May 09 12:07:44 2013] [notice] Child 844: Exit event signaled. Child process is ending.
[Thu May 09 12:07:45 2013] [notice] Child 844: Released the start mutex
[Thu May 09 12:08:00 2013] [notice] Child 844: All worker threads have exited.
[Thu May 09 12:08:00 2013] [notice] Child 844: Child process is exiting
[Thu May 09 12:08:00 2013] [notice] Parent: Child process exited successfully.
Warning: DocumentRoot [C:/apache2/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [C:/apache2/docs/dummy-host2.example.com] does not exist
[Thu May 09 12:08:01 2013] [notice] Apache/2.2.22 (Win64) PHP/5.3.13 configured -- resuming normal operations
[Thu May 09 12:08:01 2013] [notice] Server built: May 13 2012 19:41:17
[Thu May 09 12:08:01 2013] [notice] Parent: Created child process 2504
Warning: DocumentRoot [C:/apache2/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [C:/apache2/docs/dummy-host2.example.com] does not exist
Warning: DocumentRoot [C:/apache2/docs/dummy-host.example.com] does not exist
Warning: DocumentRoot [C:/apache2/docs/dummy-host2.example.com] does not exist
[Thu May 09 12:08:01 2013] [notice] Child 2504: Child process is running
[Thu May 09 12:08:01 2013] [notice] Child 2504: Acquired the start mutex.
[Thu May 09 12:08:01 2013] [notice] Child 2504: Starting 64 worker threads.
[Thu May 09 12:08:01 2013] [notice] Child 2504: Starting thread to listen on port 80.

我在 Google 中找到的大多数答案都是要求我们编辑C:\WINDOWS\System32\drivers\etc\hosts为只有一个127.0.0.1 localhost. 我的从一开始就是这样。

顺便说一句,在错误日志中,它说C:/apache2/.... 但是在我的 C 文件夹中,该目录不存在。

如果有问题,我会使用 WAMP 服务器。

有什么解决办法吗?谢谢

4

1 回答 1

0

我将服务器从 WAMP 更改为 XAMPP,现在它可以正常工作了。不确定是什么原因造成的。

于 2013-05-09T08:13:41.063 回答