Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/281.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 找不到Phabricator git命令_Php_Git_Phabricator - Fatal编程技术网

Php 找不到Phabricator git命令

Php 找不到Phabricator git命令,php,git,phabricator,Php,Git,Phabricator,我遵循了Phabricator安装和配置指南: http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html 当我导航到http://localhost要进行最终设置,我收到一条消息,上面写着它找不到git命令(还有一条警告是“警告pcntl不可用!”: 我还想提一下,我有git,我可以在终端上毫无问题地运行它。找到web服务器运行的用户,并确定该用户的路径环境变量中是否包含git。找到web服务器运行的

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

当我导航到
http://localhost
要进行最终设置,我收到一条消息,上面写着它找不到git命令(还有一条警告是“警告pcntl不可用!”:


我还想提一下,我有git,我可以在终端上毫无问题地运行它。找到web服务器运行的用户,并确定该用户的
路径
环境变量中是否包含
git

找到web服务器运行的用户,并确定
git
包含在该用户的
路径
环境变量中。

我已经解决了它

问题在于PH中缺少pcntl扩展。我必须从源代码处编译它(如这里所述:)。

我已经解决了它


问题在于PH中缺少pcntl扩展。我必须从源代码处编译它(如这里所述:).

哪个部分的
sh:git:command not found
很难理解?在系统本身上有git只是在sh下可用的一个先决条件。在这种情况下,正如错误所述,它在sh下不可用。您需要在sh下使其可用。情况不是这样吗?对于PHP用户来说,在sh下git不可用?Do您知道使用了哪个用户和shell吗?
sh:git:command not found
的哪一部分很难理解?在系统本身上有git只是在sh下可用的一个先决条件。在这种情况下,正如错误所述,它在sh下不可用。您需要在sh下使其可用。情况不是这样吗?git不可用为PHP用户在sh下添加标签?您知道使用哪个用户和shell吗?
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}