[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 #!/bin/bash 2 3 confirm() { 4 echo "Press RETURN to continue, or ^C to cancel."; 5 read -e ignored 6 } 7 8 GIT='git' 9 10 LTS="Ubuntu 10.04" 11 ISSUE=`cat /etc/issue` 12 if [[ $ISSUE != Ubuntu* ]] 13 then 14 echo "This script is intended for use on Ubuntu, but this system appears"; 15 echo "to be something else. Your results may vary."; 16 echo 17 confirm 18 elif [[ `expr match "$ISSUE" "$LTS"` -eq ${#LTS} ]] 19 then 20 GIT='git-core' 21 fi 22 23 echo "PHABRICATOR UBUNTU INSTALL SCRIPT"; 24 echo "This script will install Phabricator and all of its core dependencies."; 25 echo "Run it from the directory you want to install into."; 26 echo 27 28 ROOT=`pwd` 29 echo "Phabricator will be installed to: $ROOT}."; 30 confirm 31 32 echo "Testing sudo..." 33 sudo true 34 if [ $? -ne 0 ] 35 then 36 echo "ERROR: You must be able to sudo to run this script."; 37 exit 1; 38 fi; 39 40 echo "Installing dependencies: git, apache, mysql, php..."; 41 echo 42 43 set +x 44 45 sudo apt-get -qq update 46 sudo apt-get install \ 47 $GIT mysql-server apache2 dpkg-dev \ 48 php5 php5-mysql php5-gd php5-dev php5-curl php-apc php5-cli php5-json 49 50 # Enable mod_rewrite 51 sudo a2enmod rewrite 52 53 HAVEPCNTL=`php -r "echo extension_loaded('pcntl');"` 54 if [ $HAVEPCNTL != "1" ] 55 then 56 echo "Installing pcntl..."; 57 echo 58 apt-get source php5 59 PHP5=`ls -1F | grep '^php5-.*/$'` 60 (cd $PHP5/ext/pcntl && phpize && ./configure && make && sudo make install) 61 else 62 echo "pcntl already installed"; 63 fi 64 65 if [ ! -e libphutil ] 66 then 67 git clone https://github.com/phacility/libphutil.git 68 else 69 (cd libphutil && git pull --rebase) 70 fi 71 72 if [ ! -e arcanist ] 73 then 74 git clone https://github.com/phacility/arcanist.git 75 else 76 (cd arcanist && git pull --rebase) 77 fi 78 79 if [ ! -e phabricator ] 80 then 81 git clone https://github.com/phacility/phabricator.git 82 else 83 (cd phabricator && git pull --rebase) 84 fi 85 86 echo 87 echo 88 echo "Install probably worked mostly correctly. Continue with the 'Configuration Guide':"; 89 echo 90 echo " http://www.phabricator.com/docs/phabricator/article/Configuration_Guide.html"; 91 echo 92 echo "You can delete any php5-* stuff that's left over in this directory if you want.";
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |