Phabricator入门手册
一,安装要求
Phabricator是一个LAMP应用套件,因此最基本的要求就是LAMP环境:
1,Linux:Linux的不同发行版及变种是必需的。Mac OS X是一个可接受的Linux变种,Windows不是。Phabricator不能安装在Windows系统上。在Mac OS X,Amazon Linux,Ubuntu,RHEL和CentOS上运行的Phabricator有活跃的贡献者;
2,Apache(或nginx,或lighttpd):需要Apache 2.2.7以上版本。
3,MySQL:MySQL必需
4,PHP:需要PHP5.2以上版本
[root@server ~]# yum -y install httpd git php php-cli php-mysql php-process php-devel php-gd php-pecl-apc php-pecl-json mysql-server
[root@server ~]# /etc/init.d/httpd start
[root@server ~]# /etc/init.d/mysqld start
[root@server ~]# cd /var/www/html
[root@server ~]# git clone git://github.com/facebook/phabricator.git
[root@server ~]# git clone git://github.com/facebook/libphutil.git
[root@server ~]# git clone git://github.com/facebook/arcanist.git
二,修改apache
vim /etc/httpd/conf/httpd.conf 在后面添加
NameVirtualHost *:80
<VirtualHost *:80>
# Change this to the domain which points to your host.
ServerName phabricator.example.com
# Change this to the path where you put 'phabricator' when you checked it
# out from GitHub when following the Installation Guide.
#
# Make sure you include "/webroot" at the end!
DocumentRoot /var/www/html/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]
</VirtualHost>
<Directory "/var/www/html/phabricator/webroot">
Order allow,deny
Allow from all
</Directory>
三,在mysql添加phabricator的表
[root@server phabricator]# bin/storage upgrade
Before running storage upgrades, you should take down the Phabricator web
interface and stop any running Phabricator daemons (you can disable this
warning with --force).
Are you ready to continue? [y/N] y
如果没提示出错就ok了。
四,设置好hosts文件,打开浏览器
解决安装php-mbstring
[root@server phabricator]# yum -y install php-mbstring
[root@server phabricator]# /etc/init.d/httpd restart
再打开访问
建立用户名和密码
[root@server phabricator]# bin/accountadmin
Enter a username to create a new account or edit an existing account.
Enter a username: bingo
There is no existing user account 'bingo'.
Do you want to create a new 'bingo' account? [Y/n] Y
Enter user real name: bingodeng
Enter user email address: 304749970@qq.com
Enter a password for this user [blank to leave unchanged]:
Should this user be a system agent? [y/N] y
Should this user be an administrator? [y/N] y
ACCOUNT SUMMARY
OLD VALUE NEW VALUE
Username bingo
Real Name bingodeng
Email 304749970@qq.com
Password Updated
System Agent N Y
Admin N Y
Save these changes? [Y/n] Y
Saved changes.
登录,可以看到4条通告
第一条,点进后,会告诉你怎么修改。后面的也是一样