[英]Error 500 on Phabricator installation on Ubuntu (Apache2 / php5-fpm / Mysql)
I'm trying to install Phabricator on my server. 我正在尝试在服务器上安装Phabricator。 I followed the documentation here : https://secure.phabricator.com/book/phabricator/article/installation_guide/
我在这里遵循了文档: https : //secure.phabricator.com/book/phabricator/article/installation_guide/
On the step : 在步骤:
Now, navigate to whichever subdomain you set up.
现在,导航至您设置的任何子域。 You should see instructions to continue setup.
您应该看到说明以继续设置。
I get an error "500" : 我收到错误“ 500”:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Here is the logs : 这是日志:
[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 = /
Here is the vhost configuration : 这是虚拟主机配置:
<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>
Here is my apache2/conf.d/php5-fpm.conf : 这是我的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>
Can someone help me ? 有人能帮我吗 ?
Thanks to my friend, I quickly found a solution. 多亏了我的朋友,我很快找到了解决方案。 I simply added :
我只是添加:
RewriteRule ^/php5-fcgi - [L]
RewriteRule ^ / php5-fcgi-[L]
To my vhost configuration : 对我的虚拟主机配置:
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^/php5-fcgi - [L]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
Thanks. 谢谢。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.