我正在Ubuntu 16.04上安装Phabricator。
我安装了PHP 7.0.8-3。
我在https://secure.phabricator.com/book/phabricator/article/configuration_guide/
的设置部分当我访问我的网站时,我收到了错误
1045:拒绝访问用户&root;' @' localhost' (使用密码:否)
我试图运行命令
phabricator/ $ ./bin/storage upgrade --user <user> --password <password>
但我得到以下错误:
[2016-07-07 17:15:54] EXCEPTION :(错误)在[/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:12]调用未定义的函数mysql_real_escape_string() arcanist(head = master,ref.master = 4d4d16f25985),phabricator(head = master,ref.master = ef13b0e52b46),phutil(head = master,ref.master = 32c56dc20b39) #0 AphrontMySQLDatabaseConnection :: escapeBinaryString(string)在[/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:8]调用 #1 AphrontMySQLDatabaseConnection :: escapeUTF8String(string)在[/src/xsprintf/qsprintf.php:178]调用 #2 xsprintf_query(AphrontMySQLDatabaseConnection,字符串,整数,字符串,整数)在[/src/xsprintf/xsprintf.php:70]调用 #3 xsprintf(string,AphrontMySQLDatabaseConnection,array)在[/src/xsprintf/qsprintf.php:64]调用 #4 qsprintf(AphrontMySQLDatabaseConnection,string,string,string,string)在[/src/xsprintf/queryfx.php:5]调用 #5 queryfx(AphrontMySQLDatabaseConnection,string,string,string,string)在[/src/xsprintf/queryfx.php:11]调用 #6 queryfx_all(AphrontMySQLDatabaseConnection,string,string,string,string)在[/src/aphront/storage/connection/AphrontDatabaseConnection.php:26]调用 #7 AphrontDatabaseConnection :: queryData(字符串,字符串,字符串,字符串)在[/src/infrastructure/storage/lisk/LiskDAO.php:535]调用 #8 LiskDAO :: loadRawDataWhere(string,string)在[/src/infrastructure/storage/lisk/LiskDAO.php:476]调用 #9 LiskDAO :: loadAllWhere(string,string)在[/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18]调用 #10 PhabricatorConfigDatabaseSource :: loadConfig(string)在[/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]调用 #11 PhabricatorConfigDatabaseSource :: 构造(字符串)在[/src/infrastructure/env/PhabricatorEnv.php:232]调用 #12 PhabricatorEnv :: buildConfigurationSourceStack()在[/src/infrastructure/env/PhabricatorEnv.php:95]调用 #13 PhabricatorEnv :: initializeCommonEnvironment()在[/src/infrastructure/env/PhabricatorEnv.php:75]调用 #14 PhabricatorEnv :: initializeScriptEnvironment()在[/scripts/__init_script.php:21]调用 #15 init_phabricator_script()在[/scripts/init_script.php:24]调用 #16 require_once(string)在[/scripts/sql/manage_storage.php:5]调用
答案 0 :(得分:1)
Phabricator不支持PHP7.0(7.1中缺少的功能)。安装支持的PHP版本,如5.6或7.1+,是的,确保也有mysql扩展。
答案 1 :(得分:0)
您需要安装php7 mysql扩展
sudo apt-get install php7.0-mysql