https://secure.phabricator.com/book/phabricator/article/installation_guide/#installation-requirement
These are official documents
Download the CentOS version of the Phabricator installation script to the OPT directory and install
#cd/opt
#wget http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh
#chmod 7 install_rhel-derivs.sh
#./install_rhel-derivs.sh
Install the necessary plugins
#yum-y Install Pcre-devel
#yum-y install php-pear#yum-y install pecl
#yum-y Install APC
Move these files to Apache DocumentRoot.
#mv/opt/arcanist/var/www/html
#mv/opt/libphutil/var/www/html
#mv/opt/phabricator/var/www/html
Close Firewall and SELinux
#/etc/init.d/iptables Stop
# Setenforce 0
# chkconfig Iptables off
# Vim/etc/selinux/config
# This file controls the state of the SELinux on the system.
# selinux= can take one of these three values:
# Enforcing-selinux security policy is enforced.
# Permissive-selinux Prints warnings instead of enforcing.
# disabled-no SELinux policy is loaded.
Selinux=disabled
# selinuxtype= can take one of these the values:
# targeted-targeted processes is protected,
# Mls-multi level Security protection.
selinuxtype=targeted
Modify/etc/httpd/conf/httpd.conf the following points
Set DocumentRoot
DocumentRoot "/var/www/html/phabricator/webroot"
Join index.php
DirectoryIndex index.php index.html Index.html.var
<virtualhost *>
Rewriteengine on
Rewriterule ^/rsrc/(. *)-[L,QSA]
Rewriterule ^/favicon.ico-[L,QSA]
Rewriterule ^ (. *) $/index.php?__path__=$1 [B,L,QSA]
</VirtualHost>
Start the necessary services
#service httpd Restart
#chkconfig httpd on
#service mysqld Restart
#chkconfig httpd on
Update Phabricator
#cd/var/www/html/phabricator
#./bin/storage Upgrade
Enter the URL 192.168.161.0 in the browser.
This article is from the "Sally Bar" blog, please be sure to keep this source http://songlisha.blog.51cto.com/6269280/1598922
The installation configuration of CentOS Phabricator must be successful!