在centos 6上安装phabricator时出错

时间:2016-10-28 07:19:57

标签: apache centos6 phabricator

我正在尝试在Centos上安装Phabricator,我已经按照所有安装步骤进行了操作,但我得到了Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.

Bellow是虚拟主机条目。

<VirtualHost *:80>
ServerAdmin test@test.com
ServerName phabricator.test.com
DocumentRoot /var/www/html/myapps/phabricator/webroot/
RewriteEngine on
RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/favicon.ico   -                       [L,QSA]
RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]
ErrorLog logs/phabricator.test.com-error_log
CustomLog logs/phabricator.test.com-access_log common
<Directory "/var/www/html/myapps/phabricator/webroot/">
   Order allow,deny
   Allow from all
</Directory>

任何帮助都将不胜感激。

2 个答案:

答案 0 :(得分:1)

RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]

我只是在虚拟主机中保持一线。删除了以下行并重新启动了apache。它现在正在为我工​​作。

RewriteRule ^/rsrc/(.*)     -                       [L,QSA]
RewriteRule ^/favicon.ico   -                       [L,QSA]

答案 1 :(得分:0)

我在使用apache 2.4.6的centos7系统上运行phabricator。

您可以使用以下内容:

flatMap

根据您的需要减少NameVirtualHost *:443 <VirtualHost 192.168.0.1:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/mycert.crt SSLCertificateKeyFile /etc/pki/tls/private/mykey.pem ServerName phabricator.myside.local ServerAlias hostname.myside.local # Change this to the path where you put 'phabricator' when you checked it # out from GitHub when following the Installation Guide. # # Make sure you include "/webroot" at the end! DocumentRoot /opt/phabricator/webroot <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/rsrc/(.*) - [L,QSA] RewriteRule ^/favicon.ico - [L,QSA] RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA] </IfModule> <Directory "/opt/phabricator/webroot"> Require all granted </Directory> ## mod_php5 directives <IfModule mod_php5.c> php_admin_flag engine On php_value upload_max_filesize 256M php_value post_max_size 256M php_value output_buffering 16384 php_admin_value date.timezone 'Europe/Berlin' php_value include_path '.:/opt/PHPExcel/Classes/' php_value memory_limit 256M php_value always_populate_raw_post_data -1 </IfModule> <LocationMatch "\.(?i:os)$"> ForceType application/octet-stream Header set Content-Disposition attachment </LocationMatch> </VirtualHost> post_max_size。我们有一些嵌套在git存储库中的大二进制文件,所以我们不得不增加它:)