master
Jeff Moe 6 years ago
parent 95d4fa1e24
commit e6f0c0b5dc

@ -1,40 +1,57 @@
Install Phabricator Install Phabricator
================= =================
# XXX use Debian Buster
http://phabricator.org/ http://phabricator.org/
https://secure.phabricator.com/book/phabricator/article/installation_guide/This script has some ideas as to what needs to be done: https://secure.phabricator.com/book/phabricator/article/installation_guide/This script has some ideas as to what needs to be done:
http://www.phabricator.com/rsrc/install/install_ubuntu.sh http://www.phabricator.com/rsrc/install/install_ubuntu.sh
sudo su - sudo su -
# XXX use Debian Buster
apt-get update apt-get update
apt-get install mysql-server apache2 dpkg-dev php5 php5-mysql php5-gd php5-dev php5-curl php-apc php5-cli php5-jsona2enmod rewriteXXXcd /var/www apt-get install mariadb-client apache2 dpkg-dev php php-mysql php-gd php-dev php-curl php-cli php-json
git clone https://github.com/phacility/libphutil.git #php-apc
git clone https://github.com/phacility/arcanist.git a2enmod rewrite
git clone https://github.com/phacility/phabricator.gitDocs XXX
http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.htmlrm /etc/apache2/sites-enabled/000-default.conf cd /var/www
git clone https://github.com/phacility/libphutil.git
git clone https://github.com/phacility/arcanist.git
git clone https://github.com/phacility/phabricator.git
Docs
http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html
rm /etc/apache2/sites-enabled/000-default.conf
cd /etc/apache2/sites-available cd /etc/apache2/sites-available
vim phabricator.confAdd: vim phabricator.confAdd:
------------ ------------
vim phabricator.conf<VirtualHost 0.0.0.0:443> vim phabricator.conf
<VirtualHost 0.0.0.0:443>
ServerName code.alephobjects.com ServerName code.alephobjects.com
ServerAdmin webmaster@alephobjects.comChange this to the path where you put 'phabricator' when you checked itout from GitHub when following the Installation Guide. #Make sure you include "/webroot" at the end! ServerAdmin webmaster@alephobjects.com
DocumentRoot /var/www/phabricator/webrootRewriteEngine on Change this to the path where you put 'phabricator' when you checked itout from GitHub when following the Installation Guide. #Make sure you include "/webroot" at the end!
DocumentRoot /var/www/phabricator/webroot
RewriteEngine on
RewriteRule ^/rsrc/(.*) - [L,QSA] RewriteRule ^/rsrc/(.*) - [L,QSA]
RewriteRule ^/favicon.ico - [L,QSA] RewriteRule ^/favicon.ico - [L,QSA]
RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]ErrorLog ${APACHE_LOG_DIR}/error.log RewriteRule ^(.*)$ /index.php?__path__=$1 [B,L,QSA]ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combinedSSLEngine on CustomLog ${APACHE_LOG_DIR}/access.log combinedSSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key<FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars SSLOptions +StdEnvVars
</FilesMatch>BrowserMatch "MSIE [2-6]" \ </FilesMatch>BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \ nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0 downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdownLimitRequestBody 33554432</VirtualHost><Directory "/var/www/phabricator/webroot"> BrowserMatch "MSIE [17-9]" ssl-unclean-shutdownLimitRequestBody 33554432</VirtualHost>
<Directory "/var/www/phabricator/webroot">
Require all granted Require all granted
</Directory>------------ </Directory>
vim 000-default.conf<VirtualHost *:80> ------------
vim 000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@alephobjects.com#redirect all http requests to https ServerAdmin webmaster@alephobjects.com#redirect all http requests to https
Redirect permanent / https://code.alephobjects.com/ErrorLog ${APACHE_LOG_DIR}/error.logPossible values include: debug, info, notice, warn, error, crit,alert, emerg. Redirect permanent / https://code.alephobjects.com/ErrorLog ${APACHE_LOG_DIR}/error.logPossible values include: debug, info, notice, warn, error, crit,alert, emerg.
@ -50,3 +67,17 @@ cd /etc/apache2/sites-enabled
ln -s ../sites-available/phabricator.conf . ln -s ../sites-available/phabricator.conf .
/etc/init.d/apache2 restart /etc/init.d/apache2 restart
##############################
Set up Database
# XXX phabricator user uses many databases in MySQL
# MySQL phabricator user has super privs
Log into db server.
CREATE DATABASE aophabricator;
CREATE USER 'aophabricator'@'10.43.1.215' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON aophabricator.* TO 'aophabricator'@'10.43.1.215';
FLUSH PRIVILEGES;

Loading…
Cancel
Save