美文网首页
phabricator配置记录

phabricator配置记录

作者: RyanHuby | 来源:发表于2017-05-15 15:22 被阅读0次

    挖坑待整理

    1.在网上找了很多资料,之前确实用过phabricator作为code review工具,目前想学习一个自己实践搭一套,所以有了这次行动。

    2.环境需求说是LAMP,另外需要域名,所以在腾讯买了云服务器,用券后三个月48块钱,不过续费是挺贵的。

    3.网上的资料指向乱七八糟,于是决定自己记录

    4.phabricator有专门针对Ubuntu和RedHat的安装脚本,目前正在安装中。脚本地址:https://secure.phabricator.com/source/phabricator/browse/master/scripts/install/install_ubuntu.sh

    5.在腾讯的国内服务器安装该脚本非常的慢,经常会出现断开的问题。果断换了vultr的美西服务器,很快就安装好了。

    6.按照配置,设置了mysql的host和user以及pass 。

    7.修改/etc/apache2/sites-enabled/000-default.conf,配置ServerName,填上自己的域名,实际上这个是Apache的配置。

    8.修改了/etc/hosts,不过不确定这个步骤是否是多余。

    9.输入域名,就可以访问phabricator了,不过后面还需要有很多要配置的,一步步来。

    开始解决setup issue:

    1.Disable PHP always_populate_raw_post_data

    The "always_populate_raw_post_data" key is set to some value other than "-1" in your PHP configuration. This can cause PHP to raise deprecation warnings during process startup. Set this option to "-1" to prevent these warnings from appearing.

    解决方法:设置 php.ini文件中的always_populate_raw_post_data值为 -1,之后/etc/init.d/apache2 restart重启。

    2.MySQL STRICT_ALL_TABLES Mode Not Set

    On database host "127.0.0.1", the globalsql_modeis not set toSTRICT_ALL_TABLES. It is strongly encouraged that you enable this mode when running Phabricator.

    By default MySQL will silently ignore some types of errors, which can cause data loss and raise security concerns. Enabling strict mode makes MySQL raise an explicit error instead, and prevents this entire class of problems from doing any damage.

    You can find more information about this mode (and how to configure it) in the MySQL manual. Usually, it is sufficient to add this to yourmy.cnffile (in the[mysqld]section) and then restartmysqld:

    sql_mode=STRICT_ALL_TABLES

    (Note that if you run other applications against the same database, they may not work in strict mode. Be careful about enabling it in these cases.)

    The current MySQL configuration has this value:

    sql_modeempty string

    If you are using Amazon RDS, some of the instructions above may not apply to you. SeeUser Guide: Amazon RDSfor discussion of Amazon RDS.

    解决方法

    vi /etc/mysql/my.cnf

    add this under the[mysqld]

    # add sql mode

    sql_mode=STRICT_ALL_TABLES

    then restart mysql make it effect.

    /etc/init.d/mysql restart

    相关文章

      网友评论

          本文标题:phabricator配置记录

          本文链接:https://www.haomeiwen.com/subject/rzjhxxtx.html