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以上版本

[[email protected] ~]# yum -y install httpd git php php-cli php-mysql php-process php-devel php-gd php-pecl-apc php-pecl-json mysql-server

[[email protected] ~]# /etc/init.d/httpd start

[[email protected] ~]# /etc/init.d/mysqld start

[[email protected] ~]# cd /var/www/html

[[email protected] ~]# git clone git://github.com/facebook/phabricator.git

[[email protected] ~]# git clone git://github.com/facebook/libphutil.git

[[email protected] ~]# 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的表

[[email protected] 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文件,打开浏览器

Phabricator基本配置

解决安装php-mbstring

[[email protected] phabricator]# yum -y install php-mbstring

[[email protected] phabricator]# /etc/init.d/httpd restart

再打开访问

Phabricator基本配置

建立用户名和密码

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

Phabricator基本配置

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










本文转自 deng304749970 51CTO博客,原文链接:http://blog.51cto.com/damondeng/1336373,如需转载请自行联系原作者

相关文章:

  • 2022-02-02
  • 2021-12-14
  • 2022-12-23
  • 2021-05-28
  • 2021-07-08
  • 2021-11-30
  • 2021-12-27
  • 2022-01-07
猜你喜欢
  • 2021-04-09
  • 2021-09-18
  • 2021-08-29
  • 2021-11-17
  • 2021-07-27
  • 2022-02-09
相关资源
相似解决方案