1

我遵循了 Phabricator 安装和配置指南: http ://www.phabricator.com/docs/phabricator/article/Installation_Guide.html http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html

当我导航到http://localhost进行最终设置时,我收到这条消息,说它找不到 git 命令(还有警告说“警告 pcntl 不可用! ”:

PHABRICATOR SETUP

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                This setup mode will guide you through setting up your Phabricator configuration.


>>>  CORE CONFIGURATION  -------------------------------------------------------

 okay  PHP's deprecated 'safe_mode' is disabled.
 okay  'open_basedir' is not set.
[WARN] You have not configured 'security.alternate-file-domain'. This makes your installation vulnerable to attack. Make sure you read the documentation for this parameter and understand the consequences of leaving it unconfigured.
 okay  $PATH is nonempty.
[OKAY] Core configuration OKAY.


>>>  REQUIRED PHP EXTENSIONS  --------------------------------------------------

 okay  Extension 'mysql' installed.
 okay  Extension 'hash' installed.
 okay  Extension 'json' installed.
 okay  Extension 'openssl' installed.
 okay  Extension 'mbstring' installed.
 okay  Extension 'iconv' installed.
 okay  Extension 'curl' installed.
 okay  PHP binary found on the command line.
 okay  PHP is available from the command line.
 okay  'php' is CLI SAPI.
 warn  pcntl is not available!
[WARN] *** WARNING *** pcntl extension not available. You will not be able to run daemons.


>>>  GIT SUBMODULES  -----------------------------------------------------------

EXCEPTION!
exception 'CommandException' with message 'Command '(cd '/Users/piotr/Phabricator/phabricator' && git submodule status)' failed with error #127:
stdout:

stderr:
sh: git: command not found

' in /Users/piotr/Phabricator/libphutil/src/future/exec/ExecFuture.php:334
Stack trace:
#0 /Users/piotr/Phabricator/libphutil/src/future/exec/execx.php(34): ExecFuture->resolvex()
#1 /Users/piotr/Phabricator/phabricator/src/infrastructure/PhabricatorSetup.php(264): execx('(cd %s && git s...', '/Users/piotr/Ph...')
#2 /Users/piotr/Phabricator/phabricator/webroot/index.php(121): PhabricatorSetup::runSetup()
#3 {main}

我还想提一下,我有 git,我可以从终端毫无问题地运行它。

4

2 回答 2

1

查找您的 Web 服务器正在运行的用户,并确定是否git包含在该path用户的环境变量中。

于 2012-10-28T15:00:41.387 回答
0

我已经解决了。

问题在于 PH 中缺少 pcntl 扩展名。我必须从源代码编译它(如此处所述:http: //blog.lancerushing.com/2011/02/getting-phps-pcntl-working-on-snow.html)。

于 2012-10-29T10:04:37.257 回答