Phabricator基本配置

Phabricator入门手册

一,安装要求

Phabricator是一个LAMP应用套件,因此最基本的要求就是LAMP环境:

1LinuxLinux的不同发行版及变种是必需的。Mac OS X是一个可接受的Linux变种,Windows不是。Phabricator不能安装在Windows系统上。在Mac OS XAmazon LinuxUbuntuRHELCentOS上运行的Phabricator有活跃的贡献者;

2Apache(nginx,或lighttpd):需要Apache 2.2.7以上版本。

3MySQLMySQL必需

4PHP:需要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文件,打开浏览器

135408659.png

解决安装php-mbstring

[root@server phabricator]# yum -y install php-mbstring

[root@server phabricator]# /etc/init.d/httpd restart

再打开访问

135343465.png

建立用户名和密码

[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: [email protected]



   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                                    [email protected]              

   Password                                    Updated                      

System Agent   N                                Y                            

      Admin   N                                Y                            




   Save these changes? [Y/n] Y


Saved changes.

登录,可以看到4条通告

135316663.png

第一条,点进后,会告诉你怎么修改。后面的也是一样

本文参考

http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html


你可能感兴趣的:(linux,windows,Phabricator基本配置)