phabricator安装记录

安装方式使用的是官网的安装脚本,官网的安装教程:
https://secure.phabricator.com/book/phabricator/article/installation_guide/

主要安装过程说明:

1、从官网下载安装脚本(将会安装apache、php等环境,不会安装mysql)

下载地址:
https://p.phcdn.net/file/download/@secure/67k3d4si5lyffxaxba6q/PHID-FILE-mq4el6evrr57bspsublr/install_rhel-derivs.sh

2、执行脚本

1)将脚本上传到将要安装的服务器的相关目录,如/usr/local/phabricator
2)添加执行权限

chmod +x install_rhel-derivs.sh

3)执行安装脚本

cd /usr/local/phabricator
./install_rhel-derivs.sh
3、配置Apache,官网配置说明:

https://secure.phabricator.com/book/phabricator/article/configuration_guide/
1)把配置文件中的下面一段配置注释掉,因为默认配置/目录是禁止所有访问

#
#    AllowOverride none
#    Require all denied
#

2)添加如下配置到文件中


  # Change this to the domain which points to your host.
  ServerName cr.gsafety.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 /usr/local/phabricator/phabricator/webroot

  RewriteEngine on
  RewriteRule ^(.*)$          /index.php?__path__=$1  [B,L,QSA]



  Order allow,deny
  Allow from all

3)打开ServerName,默认是注释掉的。
4) 启动Apache

/usr/sbin/httpd -k start
或
/usr/sbin/httpd -k restart
4、修改/etc/hosts(如果没有域名的话)
5、安装MySQL(略)
6、使用./bin/config配置数据库
cd /usr/local/phabricator/phabricator/
./bin/config set mysql.host 192.168.46.1
./bin/config set mysql.user root
./bin/config set mysql.pass 123456
7、升级php版本到5.5以上
yum list installed|grep php
yum remove php
yum remove php-*

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install php71-php php71-php-common php71-php-devel php71-php-gd php71-php-mysqlnd php71-php-pecl-mysql php71-php-pecl-memcached php71-php-pecl-memcache php71-php-pecl-redis php71-php-opcache php71-php-mbstring php71-php-posix php71-php-apcu php71-php-zip
php -v
8、执行./bin/storage upgrade,完成
9、附录:

主要操作命令记录:

cd /usr/local/
mkdir phabricator
cd phabricator/
./install_rhel-derivs.sh 
vim /etc/httpd/conf/httpd.conf 
vi /etc/hosts
ping cr.gsafety.com
/usr/sbin/httpd -k restart
firewall-cmd --state
systemctl stop firewalld
cd /usr/local/phabricator/
cd phabricator/
./bin/storage upgrade
which php
php -v
yum list installed|grep php
yum remove php
yum remove php-*
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
yum -y install php72-php php72-php-common php72-php-devel php72-php-gd php72-php-mysqlnd php72-php-pecl-mysql php72-php-pecl-memcached php72-php-pecl-memcache php72-php-pecl-redis php72-php-opcache
php -v
which php
find / -name php
/opt/remi/php72/root/usr/bin/php -v
vi .bash_profile 
source .bash_profile 
php -v
cd /usr/local/phabricator/phabricator/
./bin/config set mysql.host 192.168.46.1
./bin/config set mysql.user root
./bin/config set mysql.pass 123456
./bin/storage upgrade

参考资料:
[1] https://www.cnblogs.com/ruanqin/p/10837971.html,yum升级php版本

你可能感兴趣的:(工具,运维)