该文档包含得到以及运行Phabricator所需的最基本安装指引。 php
Phabricator是一个LAMP应用套件,所以最基本的要求就是LAMP环境: html
注意:Phabricator的命令行接口--Arcanist,能够在Windows上正常运行。查看详细说明:Arcanist User Guide: Windows。
mysql
你可能也须要一个域名和一台能链接互联网的电脑。 nginx
若是你在Ubuntu或Redhat及其衍生版本上安装,这里有可用的安装脚本,这些脚本能够自动处理下面文档中讨论的大部分操做: git
若是这些能够为你工做,你能够直接跳过下面的操做到配置向导页。 github
不然,以下所列将是你必须安装的: web
若是你已经设置好LAMP环境,你能够已经得到你所需的任何东东。 sql
既然你已经安装以上所需的东东,下面获取Phabricator以及其依赖包: apache
$ cd somewhere/ # 切换到安装目录
somewhere/ $ git clone git://github.com/facebook/libphutil.git
somewhere/ $ git clone git://github.com/facebook/arcanist.git
somewhere/ $ git clone git://github.com/facebook/phabricator.git
Like everything else written in PHP, Phabricator will run much faster with APC installed. You likely need to install "pcre-devel" first: ubuntu
sudo yum install pcre-devel
Then you have two options. Either install via PECL (try this first):
sudo yum install php-pear sudo pecl install apc
If that doesn't work, grab the package from PECL directly and follow the build instructions there:
http://pecl.php.net/package/APC
Installing APC is optional but strongly recommended, especially on production hosts.
Once APC is installed, test that it is available by running:
php -i | grep apc
If it doesn't show up, add:
extension=apc.so
..to "/etc/php.d/apc.ini" or the "php.ini" file indicated by "php -i".
XHProf is a PHP profiling tool. You don't need to install it unless you are developing Phabricator and making performance changes.
You can install xhprof with:
$ pecl install xhprof
If you have a PEAR version prior to 1.9.3, you may run into a phpize failure. If so, you can download the source and build it with:
$ cd extension/ $ phpize $ ./configure $ make $ sudo make install
You may also need to add "extension=xhprof.so" to your php.ini.
See https://bugs.php.net/bug.php?id=59747 for more information.
因为Phabricator一直在活跃发展中,你应该常常更新它。如何更新:
参看配置向导以获取更多细节。你也可使用相似以下的脚本以自动化的方式更新:
http://www.phabricator.com/rsrc/install/update_phabricator.sh