【问题标题】:Phabricator Installation Error with PHP 7.0PHP 7.0 的 Phabricator 安装错误
【发布时间】:2016-07-07 17:22:53
【问题描述】:

我正在 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] 例外:(错误)在 [/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnection.php:12] 调用未定义函数 mysql_real_escape_string() 奥术师(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, string, integer, string, integer) 在 [/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(string, string, string, string) 在 [/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::__construct(string) 在 [/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] 调用

更新:

自 2021 年 6 月 1 日起,Phabricator 将不再维护或更新。Click here for more info

【问题讨论】:

标签: php mysql phabricator


【解决方案1】:

Phabricator 不支持 PHP7.0(缺少 7.1 中存在的功能)。安装支持的 PHP 版本,如 5.6 或 7.1+,是的,请确保 mysql 扩展也在那里。

【讨论】:

    【解决方案2】:

    你需要安装 php7 mysql 扩展

    sudo apt-get install php7.0-mysql

    【讨论】:

    • 我们目前不支持 php7(缺少 7.1 中将存在的功能)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-10-21
    • 2016-09-19
    • 2017-03-11
    • 2019-01-13
    • 1970-01-01
    • 2018-01-30
    • 2017-10-14
    相关资源
    最近更新 更多