标签:git 18.04 phabricator sudo apache2 host php
1. 官网文档
https://secure.phabricator.com/book/phabricator/article/configuration_guide/
2. 安装apache2
sudo apt-get install dpkg-dev
sudo apt-get install apache2
3. 安装php7.2及支持扩展
sudo apt-get install php php-mysql php-gd php-curl php-apcu php-cli php-json php-mbstring
sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.2-fpm sudo systemctl reload apache2
4. 安装mysql5.7
sudo apt-get install mysql-server
5. 安装git
sudo apt-get install git
6. 拉取项目
cd ~
# git clone https://github.com/phacility/libphutil.git # 新版不需要 git clone https://github.com/phacility/arcanist.git git clone https://github.com/phacility/phabricator.git
7. 配置Apache配置
sudo vim /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context of virtual hosts, the ServerName # specifies what hostname must appear in the request's Host: header to # match this virtual host. For the default virtual host (this file) this # value is not decisive as it is used as a last resort host regardless. # However, you must set it for any further virtual host explicitly. #ServerName www.example.com # ServerAdmin webmaster@localhost ServerName localhost:9999 DocumentRoot /home/master/phabricator/phabricator/webroot # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf RewriteEngine on RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA] <Directory "/home/master/phabricator/phabricator/webroot"> Require all granted </Directory> </VirtualHost> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
sudo vim /etc/apache2/ports.conf
改下默认端口, 因为我的80已经被使用
# If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf Listen 9999 <IfModule ssl_module> Listen 443 </IfModule> <IfModule mod_gnutls.c> Listen 443 </IfModule> # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
8. 重启服务生效配置
sudo systemctl reload apache2 sudo systemctl start apache2 # 如果有报错, 可以用下面提示命令查看服务报错原因
journalctl -xe
9. 访问http://127.0.0.1:9999/ 初始化配置
# 配置数据库
sudo ./bin/config set mysql.host 127.0.0.1 sudo ./bin/config set mysql.user root sudo ./bin/config set mysql.pass 123456
# 初始化数据库 sudo ./bin/storage upgrade
10. 设置初始管理员账号
11. 启动认证 Username/Password
12. 重新注册用户
手动修改数据库isAprroved为1即可登录
问题1:管理员设置后,注销了,有没启用认真和注册功能,怎么重新登录
./bin/auth recover admin
标签:git,18.04,phabricator,sudo,apache2,host,php 来源: https://www.cnblogs.com/fireblackman/p/15697631.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。