Page MenuHomePhabricator

Phabricator not working with HHVM + proxygen server mode
Closed, WontfixPublic

Description

Phabricator not working with HHVM + proxygen server mode.
Due to PATH required url rewrite, but proxygen server not provided us rewrite support. so we need to change our code to let it working.

diff --git a/support/PhabricatorStartup.php b/support/PhabricatorStartup.php
index 6c50ed6..2ec8f31 100644
--- a/support/PhabricatorStartup.php
+++ b/support/PhabricatorStartup.php
@@ -540,7 +540,7 @@ final class PhabricatorStartup {
       return;
     }
 
-    if (php_sapi_name() == 'cli-server') {
+    if (php_sapi_name() == 'cli-server' || php_sapi_name() == 'srv') {
       // Compatibility with PHP 5.4+ built-in web server.
       $url = parse_url($_SERVER['REQUEST_URI']);
       $_REQUEST['__path__'] = $url['path'];

This change will let hhvm proxygen working well with phabricator

Related Objects

Event Timeline

avivey added a subscriber: avivey.
epriestley claimed this task.
epriestley added a subscriber: epriestley.

We don't support HHVM.

See also T1261#89894.

Or see @avivey's far more complete response.