2016-07-07 30 views
0

我在Ubuntu 16.04上安装了Phabricator。Phabricator Instalation Error

我安装了PHP 7.0.8-3。

我在设置部分在https://secure.phabricator.com/book/phabricator/article/configuration_guide/

当我去我的网站,我得到的错误

1045: Access denied for user 'root'@'localhost' (using password: NO)

我试图运行命令

phabricator/ $ ./bin/storage upgrade --user <user> --password <password> 

但我只是得到以下错误:

[2016-07-07 17:15:54] EXCEPTION: (Error) Call to undefined function mysql_real_escape_string() at [/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:12] arcanist(head=master, ref.master=4d4d16f25985), phabricator(head=master, ref.master=ef13b0e52b46), phutil(head=master, ref.master=32c56dc20b39) #0 AphrontMySQLDatabaseConnection::escapeBinaryString(string) called at [/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:8] #1 AphrontMySQLDatabaseConnection::escapeUTF8String(string) called at [/src/xsprintf/qsprintf.php:178] #2 xsprintf_query(AphrontMySQLDatabaseConnection, string, integer, string, integer) called at [/src/xsprintf/xsprintf.php:70] #3 xsprintf(string, AphrontMySQLDatabaseConnection, array) called at [/src/xsprintf/qsprintf.php:64] #4 qsprintf(AphrontMySQLDatabaseConnection, string, string, string, string) called at [/src/xsprintf/queryfx.php:5] #5 queryfx(AphrontMySQLDatabaseConnection, string, string, string, string) called at [/src/xsprintf/queryfx.php:11] #6 queryfx_all(AphrontMySQLDatabaseConnection, string, string, string, string) called at [/src/aphront/storage/connection/AphrontDatabaseConnection.php:26] #7 AphrontDatabaseConnection::queryData(string, string, string, string) called at [/src/infrastructure/storage/lisk/LiskDAO.php:535] #8 LiskDAO::loadRawDataWhere(string, string) called at [/src/infrastructure/storage/lisk/LiskDAO.php:476] #9 LiskDAO::loadAllWhere(string, string) called at [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:18] #10 PhabricatorConfigDatabaseSource::loadConfig(string) called at [/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7] #11 PhabricatorConfigDatabaseSource::construct(string) called at [/src/infrastructure/env/PhabricatorEnv.php:232] #12 PhabricatorEnv::buildConfigurationSourceStack() called at [/src/infrastructure/env/PhabricatorEnv.php:95] #13 PhabricatorEnv::initializeCommonEnvironment() called at [/src/infrastructure/env/PhabricatorEnv.php:75] #14 PhabricatorEnv::initializeScriptEnvironment() called at [/scripts/__init_script.php:21] #15 init_phabricator_script() called at [/scripts/init_script.php:24] #16 require_once(string) called at [/scripts/sql/manage_storage.php:5]

回答

0

您需要安装

sudo apt-get install php7.0-mysql

+0

我们目前不支持php7(功能缺失将存在于7.1中) –

1

Phabricator的PHP7的mysql扩展目前不支持PHP7。请安装支持PHP的版本,如5.6,并确保mysql扩展也存在。