CentOS之Phabricator的安裝配置必須成功版!

來源:互聯網
上載者:User

標籤:phabricator

https://secure.phabricator.com/book/phabricator/article/installation_guide/#installation-requirement

以上是官方文檔


把centos版的phabricator安裝指令碼下載到opt目錄並安裝

#cd /opt

#wget http://www.phabricator.com/rsrc/install/install_rhel-derivs.sh

#chmod 777 install_rhel-derivs.sh 

#./install_rhel-derivs.sh


安裝必要外掛程式

#yum -y install pcre-devel
#yum -y install php-pear#yum -y install pecl
#yum -y install apc


把這些檔案移動到apache的DocumentRoot下

#mv /opt/arcanist /var/www/html
#mv /opt/libphutil /var/www/html
#mv /opt/phabricator /var/www/html

關門防火牆和selinux
# /etc/init.d/iptables stop
# setenforce 0
# chkconfig iptables off
# vim /etc/selinux/config
# This file controls the state of 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 two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

修改/etc/httpd/conf/httpd.conf以下幾點

//設定DocumentRoot

DocumentRoot "/var/www/html/phabricator/webroot"

//加入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>


啟動必要的服務

#service httpd restart

#chkconfig httpd on

#service mysqld restart

#chkconfig httpd on


更新phabricator

#cd /var/www/html/phabricator

#./bin/storage upgrade


在瀏覽器中輸入網址192.168.161.0即可。




本文出自 “莎吧啦” 部落格,請務必保留此出處http://songlisha.blog.51cto.com/6269280/1598922

CentOS之Phabricator的安裝配置必須成功版!

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.