2016-10-28 14 views
0

にphabricatorのインストール中にエラーを取得、私はインストールのすべての手順に従ってきたが、私はRequest parameter '__path__' is not set. Your rewrite rules are not configured correctly.私はCentOSに上PhabricatorをインストールしようとしていますCentOSの6

を取得していますベローは、仮想ホストエントリです。

<VirtualHost *:80> 
ServerAdmin [email protected] 
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> 

任意の助けいただければ幸いです。

+0

この設定は古いようです。最新の設定例については、https://secure.phabricator.com/book/phabricator/article/configuration_guide/を参照してください。 –

+0

@Chad Little mine apacheのバージョンは2.2.5です。このバージョンはインストールマニュアルに記載されていますが、まだ動作していません。 – Nitin

答えて

0

私はapache 2.4.6のcentos7システムでphabricatorを実行しています。

あなたはこのようなものを使用することができます

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_sizeupload_max_filesizeニーズに応じて減らします。私たちは、Gitのリポジトリにネストされていくつかの大きなバイナリを持っていたので、私たちはそれを増加しなければならなかった:)

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

私はバーチャルホストでの線の上に保持します。次の行を削除して、Apacheを再起動しました。今私のために働いています。

RewriteRule ^/rsrc/(.*)  -      [L,QSA] 
RewriteRule ^/favicon.ico -      [L,QSA] 
関連する問題