在Ubuntu(Apache2/php5-fpm/Mysql)上安装Phabricator时出现错误500 [英] Error 500 on Phabricator installation on Ubuntu (Apache2 / php5-fpm / Mysql)

查看:55
本文介绍了在Ubuntu(Apache2/php5-fpm/Mysql)上安装Phabricator时出现错误500的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在服务器上安装Phabricator.我在这里遵循了文档: https://secure.phabricator.com/book/phabricator/article/installation_guide/

I'm trying to install Phabricator on my server. I followed the documentation here : https://secure.phabricator.com/book/phabricator/article/installation_guide/

在步骤上:

现在,导航至您设置的任何子域.你应该看到继续安装的说明.

Now, navigate to whichever subdomain you set up. You should see instructions to continue setup.

我收到错误"500":

I get an error "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 = /

这是虚拟主机配置:

<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:

Here is my 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>

有人可以帮助我吗?

推荐答案

多亏了我的朋友,我迅速找到了解决方案.我只是添加了:

Thanks to my friend, I quickly found a solution. I simply added :

RewriteRule ^/php5-fcgi-[L]

RewriteRule ^/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]

谢谢.

这篇关于在Ubuntu(Apache2/php5-fpm/Mysql)上安装Phabricator时出现错误500的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆