使用Apache 2.4和PHP 5.2的Vagrant机器会生成内部服务器错误

时间:2015-04-01 21:23:23

标签: apache2 vagrant php

配置了带虚拟盒的流浪汉Ubuntu 14.04机器。

我收到错误(在浏览器中)

Internal Server Error

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

Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

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

得到错误(/var/log/apache2/error.log):

[Wed Apr 01 20:58:34.609309 2015] [fastcgi:error] [pid 24066:tid 3046103872] (104)Connection reset by peer: [client 192.168.33.1:59777] FastCGI: comm with server "/var/www/html/circulocolaborativo.com.br/php5.fcgi" aborted: read failed
[Wed Apr 01 20:58:34.614694 2015] [fastcgi:error] [pid 24066:tid 3046103872] [client 192.168.33.1:59777] FastCGI: incomplete headers (0 bytes) received from server "/var/www/html/circulocolaborativo.com.br/php5.fcgi"

我的虚拟主机配置了

<VirtualHost *:80>
    Servername circulocolaborativo.local
    DocumentRoot /var/www/html/circulocolaborativo.com.br

    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

#    ErrorLog "/home/vagrant/logs/error_log"

    <Directory /var/www/html/circulocolaborativo.com.br>
        Options FollowSymLinks
        DirectoryIndex index.php
        Allowoverride all
        Require all granted
    </Directory>

        Alias /php5.fcgi /var/www/html/circulocolaborativo.com.br/php5.fcgi
        FastCGIExternalServer /var/www/html/circulocolaborativo.com.br/php5.fcgi -flush -host 127.0.0.1:5200 -idle-timeout 900

        AddType application/x-httpd-fastphp5 .php
        Action application/x-httpd-fastphp5 /php5.fcgi

    <Location /var/www/html/circulocolaborativo.com.br/libraries/Sciere/ws/sptl >
        AuthType Digest
        AuthName "WebService SPTL"
        AuthDigestDomain /libraries/Sciere/ws/sptl/

        AuthDigestProvider file
        AuthUserFile /var/www/html/.digest_pw_sptl
        Require valid-user
    </Location>
</VirtualHost>

有人可以帮我解决这个问题吗?我无法弄清楚发生了什么。我使用php-fpm和fastcgi模块。

0 个答案:

没有答案