Ошибка 500 при установке Phabricator на Ubuntu (Apache2/php5-fpm/Mysql)

Я пытаюсь установить Phabricator на свой сервер. Я следил за документацией здесь: https://secure.phabricator.com/book/phabricator/article/installation_guide/

На ступеньке:

Теперь перейдите к любому поддомену, который вы настроили. Вы должны увидеть инструкции для продолжения настройки.

Я получаю ошибку "500":

Internal Server Error

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

Вот логи:

[Sun Apr 13 23:40:43 2014] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sun Apr 13 23:40:43 2014] [debug] core.c(3112): [client 127.0.0.1] r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/ 
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/ 
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/ 
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/ 
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/php5-fcgi/php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri  = /php5-fcgi/php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /php5-fcgi/  
[Sun Apr 13 23:40:43 2014] [debug] core.c(3118): [client 127.0.0.1] redirected from r->uri = /

Вот конфигурация vhost:

<VirtualHost *:8080>
        ServerAdmin cont....fr
        ServerName p....fr
        ServerAlias proj....fr

        DocumentRoot /home/tea(....)icator/webroot

        RewriteEngine on
        RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
        RewriteRule ^/favicon.ico   -                       [L,QSA]
        RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

        <Directory />
                Options FollowSymLinks
                AllowOverride None
        </Directory>
        <Directory /home/(....)ricator/webroot>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
       Order allow,deny
                Allow from all
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error-project.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel debug

        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Вот мой apache2/conf.d/php5-fpm.conf:

<IfModule mod_fastcgi.c>
        AddHandler php5-fcgi .php
        Action php5-fcgi /php5-fcgi
        Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
        FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -appConnTimeout 10 -idle-timeout 250 -socket /tmp/php5-fpm.sock -pass-header Authorization
</IfModule>

Кто-нибудь может мне помочь ?


person iizno    schedule 13.04.2014    source источник


Ответы (1)


Благодаря моему другу, я быстро нашел решение. Я просто добавил:

Правило перезаписи ^/php5-fcgi - [L]

К моей конфигурации виртуального хоста:

RewriteEngine on  
RewriteRule ^/rsrc/(.*)     -    [L,QSA]  
RewriteRule ^/favicon.ico   -                       [L,QSA] 
RewriteRule ^/php5-fcgi     -                       [L]  
RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

Спасибо.

person iizno    schedule 13.04.2014