2018/5/22

phabrictor : repo 操作

上一篇 已經把 phabricator 裝好了。
這裡做 phabricator 管 repo 的設定。一樣,是抄 rarguelloF 的 script

建立repo 要用的目錄,並且設定owner www-data
mkdir -p /var/repo
chown www-data:www-data /var/repo

mailadaptor 就安裝 sendmail
apt-get install sendmail
裝完沒有設什麼...



接著就是登入設定。第一個create 的 user 是 administrator,因為有限制最少password 字數,所以最後加上 123。
設定進入後...
上面的驚嘆號出現 15個...
  • Disable PHP always_populate_raw_post_data
  • Small MYSQL "max_allowed_packet"
  • MySQL_ONLY_FULL_GROUP_BY Mode Set
  • MySQL May Run Slowly
  • Server Timezone Not Configured
  • Alternate File Domain Not Configured
  • Install Pygment to Improve Syntax Hightlighting
  • Large File Storage Not Configured
  • PHP post_max_size Not Configured
  • OPcache Not Configured for Production
  • Base URI Not Configured
  • Not Authentication Providers Configured
  • Phabricator Daemon Are Not Running

貼一下 phabricator 自己的提示..
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.
The current PHP configuration has this value:

always_populate_raw_post_data "0"
To update this value, edit your PHP configuration file, located here:

/etc/php/5.6/fpm/php.ini
You can find more information about PHP configuration values in the PHP Documentation.

After editing the PHP configuration, restart Phabricator for the changes to take effect. 
For help with restarting Phabricator, see Restarting Phabricator in the documentation.


PHP post_max_size Not Configured

Adjust post_max_size in your PHP configuration to at least 32MB. When set to smaller value, large file uploads may not work properly.
The current PHP configuration has this value:

post_max_size "8M"
To update this value, edit your PHP configuration file, located here:

/etc/php/5.6/fpm/php.ini
You can find more information about PHP configuration values in the PHP Documentation.

After editing the PHP configuration, restart Phabricator for the changes to take effect. 
For help with restarting Phabricator, see Restarting Phabricator in the documentation.


Small MySQL "max_allowed_packet"

On host "localhost", MySQL is configured with a small "max_allowed_packet" (16777216), 
which may cause some large writes to fail. The recommended minimum value for this setting is "33554432".
The current MySQL configuration has this value:

max_allowed_packet "16777216"
If you are using Amazon RDS, some of the instructions above may not apply to you. See User Guide: Amazon RDS for discussion of Amazon RDS.
這格要修改/etc/mysql/mysql.conf.d/mysqld.cnf

Install Pygments to Improve Syntax Highlighting

Phabricator can highlight a few languages by default, but installing and enabling Pygments (a third-party highlighting tool) 
will add syntax highlighting for many more languages. 

For instructions on installing and enabling Pygments, see the pygments.enabled configuration option.

If you do not want to install Pygments, you can ignore this issue.
The current Phabricator configuration has this value:

pygments.enabled false


就...installl..
apt-get install python-pygments
裝完以後,可以看看/設定 phabricator 的設置:
~$ sudo /opt/phabricator/bin/config get pygments.enabled
[sudo] password for charles-chang: 
{
  "config": [
    {
      "key": "pygments.enabled",
      "source": "local",
      "value": null,
      "status": "unset",
      "errorInfo": null
    },
    {
      "key": "pygments.enabled",
      "source": "database",
      "value": null,
      "status": "unset",
      "errorInfo": null
    }
  ]
}

也可以用 phabricator 的 web interface 設定: Config -- Config -- Syntax Highlighting -- pygments.enabled

沒有留言:

張貼留言