Install and configure Phabricator in CentOS
Download the centos phabricator installation script to the opt directory and install it.
# Cd/opt
# Wgethttp: // www.phabricator.com/rsrc/install/install_rhel-derivs.sh
# Chmod 777 install_rhel-derivs.sh
#./Install_rhel-derivs.sh
Install necessary plug-ins
#yum-yinstallpcre-devel
#yum-yinstallphp-pear#yum-yinstallpecl
#yum-yinstallapc
Move these files to the DocumentRoot directory of apache.
#mv/opt/arcanist/var/www/html
#mv/opt/libphutil/var/www/html
#mv/opt/phabricator/var/www/html
Firewall shutdown and selinux
#/etc/init.d/iptablesstop
#setenforce0
#chkconfigiptablesoff
#vim/etc/selinux/config
#ThisfilecontrolsthestateofSELinuxonthesystem.
#SELINUX=cantakeoneofthesethreevalues:
#enforcing-SELinuxsecuritypolicyisenforced.
#permissive-SELinuxprintswarningsinsteadofenforcing.
#disabled-NoSELinuxpolicyisloaded.
SELINUX=disabled
#SELINUXTYPE=cantakeoneofthesetwovalues:
#targeted-Targetedprocessesareprotected,
#mls-MultiLevelSecurityprotection.
SELINUXTYPE=targeted
Modify the following parameters in/etc/httpd/conf/httpd. conf:
// Set DocumentRoot
DocumentRoot "/var/www/html/phabricator/webroot"
// Add index. php
DirectoryIndex index. php 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 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 192.168.161.0 in the browser.
Https://secure.phabricator.com/book/phabricator/article/installation_guide/#installation-requirement
The above are official documents