Skip to content

Instantly share code, notes, and snippets.

@mickadoo
Created May 2, 2017 14:34
Show Gist options
  • Save mickadoo/72d09ffa230a554e8c5bd67be24574e5 to your computer and use it in GitHub Desktop.
Save mickadoo/72d09ffa230a554e8c5bd67be24574e5 to your computer and use it in GitHub Desktop.
install tools required for civihr / buildkit
echo "mysql-server-5.5 mysql-server/root_password password root" | sudo debconf-set-selections
echo "mysql-server-5.5 mysql-server/root_password_again password root" | sudo debconf-set-selections
sudo apt-get update
sudo apt-get install -y \
curl \
vim \
man-db \
mysql-server \
git \
php5 \
unzip \
zip \
php5-curl \
mcrypt \
php5-mcrypt \
php5-mysql \
php5-gd \
php5-imap \
php5-intl \
php5-xdebug
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo php5enmod mcrypt intl imap gd
sudo npm install npm -g
git clone https://github.com/civicrm/civicrm-buildkit.git /home/$SSH_USER/buildkit
cd /home/$SSH_USER/buildkit/bin/ && ./civi-download-tools
echo export PATH="/home/$SSH_USER/buildkit/bin:\$PATH" >> /home/$SSH_USER/.bashrc
echo "Include /home/$SSH_USER/.amp/apache.d/*.conf" | sudo tee -a /etc/apache2/apache2.conf
sudo a2enmod rewrite
@steliosmilidonis
Copy link

$SSH_USER isn't specified

@mickadoo
Copy link
Author

mickadoo commented May 3, 2017

Ah, sorry - this was just copied from the Vagrantfile I'm using and it specified $SSH_USER as an environment variable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment