我已经通过 composer 在我的 apache 服务器上安装了 CakePHP 3.1,但之后我收到 500 错误。.htaccess 文件看起来不错。对于 vhost 和 */htdocs,“AllowOverride All”设置为 All。日志显示这一行:
[Thu Sep 24 10:15:20.193955 2015] [:error] [pid 7231:tid 2761524324096] (104)Connection reset by peer: [client 89.x.x.x:42930] FastCGI: failed to read from backend server
由于我的主人是 Gandi,我在那里查找了一些提示:
此错误表明 Apache 服务未从解释器(PHP、node.js、Python 等)获得响应,因此无法传递请求的页面。发生此错误时,您应该分析解释器的日志,以便搜索问题根源所在的错误。
那么,我现在该怎么办?CakePHP 的日志目录只显示一个名为“empty”的空文件。我希望有人能给我一个提示,我该如何解决这个问题。
PS:在安装 CakePHP 时,我收到以下错误,我认为可以忽略,因为它继续安装:
Cannot create cache directory /srv/data/.composer/cache/[...] , or directory is not writable. Proceeding without cache