2012-10-28 46 views
1

我按照Phabricator安裝&配置指南: http://www.phabricator.com/docs/phabricator/article/Installation_Guide.html http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.htmlPhabricator混帳找不到命令

當我瀏覽到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,我可以在沒有終端問題的情況下運行它。

+0

'sh:git:command not found'的哪一部分很難理解?在系統本身上進行git只是在sh下可用的前提條件。在這種情況下,它不在sh下,因爲錯誤狀態。您需要在sh下使用它。 – hakre

+0

不幸的是並非如此。 –

+0

情況並非如此? Git不適用於PHP用戶?你知道使用哪個用戶和shell嗎? – hakre

回答

1

找到用戶正在運行您的Web服務器,並確定git是否包含在該用戶的path環境變量中。