Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F5095560
Ubuntu 16.04.3 Installer Script
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
chad
Aug 12 2017, 9:15 PM
2017-08-12 21:15:56 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
Ubuntu 16.04.3 Installer Script
View Options
#!/bin/bash
confirm() {
echo "Press RETURN to continue, or ^C to cancel.";
read -e ignored
}
GIT='git'
LTS="Ubuntu 16.04.3"
ISSUE=`cat /etc/issue`
if [[ $ISSUE != Ubuntu* ]]
then
echo "This script is intended for use on Ubuntu, but this system appears";
echo "to be something else. Your results may vary.";
echo
confirm
elif [[ `expr match "$ISSUE" "$LTS"` -eq ${#LTS} ]]
then
GIT='git-core'
fi
echo "PHABRICATOR UBUNTU INSTALL SCRIPT";
echo "This script will install Phabricator and all of its core dependencies.";
echo "Run it from the directory you want to install into.";
echo
ROOT=`pwd`
echo "Phabricator will be installed to: ${ROOT}.";
confirm
echo "Testing sudo..."
sudo true
if [ $? -ne 0 ]
then
echo "ERROR: You must be able to sudo to run this script.";
exit 1;
fi;
echo "Adding apt-repository for PHP 7.1...";
echo
sudo add-apt-repository ppa:ondrej/php
echo "Installing dependencies: git, svn, hg, apache, mysql, php...";
echo
set +x
sudo apt-get -qq update
sudo apt-get install \
$GIT mysql-server apache2 dpkg-dev \
php7.1 php7.1-cli php7.1-common php7.1-curl php7.1-gd php7.1-json \
php7.1-mbstring php7.1-mysql php7.1-opcache php7.1-xml \
npm subversion mercurial python-pygments
# Enable mod_rewrite
sudo a2enmod rewrite
sudo systemctl restart apache2
if [ ! -e libphutil ]
then
git clone https://github.com/phacility/libphutil.git
else
(cd libphutil && git pull --rebase)
fi
if [ ! -e arcanist ]
then
git clone https://github.com/phacility/arcanist.git
else
(cd arcanist && git pull --rebase)
fi
if [ ! -e phabricator ]
then
git clone https://github.com/phacility/phabricator.git
else
(cd phabricator && git pull --rebase)
fi
cd phabricator
echo "Setting up database connection...";
echo
read -p "Enter MySQL username: " username
bin/config set mysql.user $username
echo
read -p "Enter MySQL password: " password
bin/config set mysql.pass $password
echo
read -p "Enter MySQL hostname: " hostname
bin/config set mysql.host $hostname
echo
bin/storage upgrade --force
echo "Starting phd daemons...";
bin/phd start
echo
echo
echo
echo "Install probably worked ok. Continue with the 'Configuration Guide':";
echo
echo " https://secure.phabricator.com/book/phabricator/article/configuration_guide/";
echo
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
747009
Default Alt Text
Ubuntu 16.04.3 Installer Script (2 KB)
Attached To
Mode
P2068 Ubuntu 16.04.3 Installer Script
Attached
Detach File
Event Timeline
Log In to Comment