Skip to content

Instantly share code, notes, and snippets.

@ellipsonic
Last active September 22, 2015 01:59
Show Gist options
  • Save ellipsonic/2c4415f2438307984aab to your computer and use it in GitHub Desktop.
Save ellipsonic/2c4415f2438307984aab to your computer and use it in GitHub Desktop.
BugGenie
# Global variables
php_config_file="/etc/php5/apache2/php.ini"
apache2_config_file="/etc/apache2/apache2.conf"
# Update main packages
sudo apt-get update
# Add dependencies
sudo apt-get -y install software-properties-common
sudo apt-get -y install git
# Setup LAMP
git clone https://gist.github.com/807f87ce2bd40d0f4539.git
cd 807f87ce2bd40d0f4539
chmod +x Lampp.sh
sudo bash ./Lampp.sh
# cd and git clone
sudo rm -f /usr/share/apache2/default-site/index.html
cd /var/www/
sudo rm -rf html
# Get into /var/www/html and pull php files
sudo chmod 777 -R /var/www/
# Get into /var/www and clone Paperwork
cd /var/www
sudo rm -rf *
sudo rm -rf .*
sudo git clone https://github.com/ellipsonic/thebuggenige_app.git thebuggenie
# Install composer globally
cd /var/www/thebuggenie/
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
# Configure swap memory
sudo free -m
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
# Update composer and install dependencies
mysql -u root -e "CREATE DATABASE IF NOT EXISTS thebuggenige_db" -proot
cd /tmp
sudo rm -rf *
sudo rm -rf .*
sudo git clone https://github.com/ellipsonic/thebuggenige_db.git .
mysql -u root -proot thebuggenige_db < thebuggenige_db.sql
sudo sed -i "s/AllowOverride None/AllowOverride All/g" /etc/apache2/sites-available/default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment