5

I'm having trouble installing phabricator. It actually seems like it would be a simple thing. I copied the example code exactly.

apache2.conf:

<VirtualHost *>
  # Change this to the domain which points to your host.
  ServerName localhost

  # 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 /var/www/phabricator/webroot

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


<Directory "/var/www/phabricator/webroot">
  Require all granted
</Directory>

Whenever I go to the server IP on a browser, it gives me this error:

Request parameter '__path__' is not set. Your rewrite rules are not configured correctly.

I found that this was part of the phabricator code:

if (!isset($_REQUEST['__path__'])) {
    self::didFatal(
        "Request parameter '__path__' is not set. Your rewrite rules ".
        "are not configured correctly.");
}

Anyone have any idea how to get past this?

4

2 回答 2

1

我与 Phab 有类似的问题,并通过以下方式解决了它:

  1. 将 Directory 段放在 VirtualHost 段内。
  2. 您是否在系统中运行任何其他虚拟服务器?如果是这样,请指定端口*:80(或者尝试不同的端口,如果您尝试另一个端口,请记住Listen 8081在声明 VirtualHost 段之前添加)
  3. 最后将 Directory 段的内容替换为:

    Order allow,deny
    Allow from all
    
于 2014-08-19T05:39:21.407 回答
1

我也面临同样的问题。只需放置

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

并从您的apache2.conf.

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

RewriteRule ^/favicon.ico   -                       [L,QSA]
于 2016-11-23T11:29:32.980 回答