Skip to content

Instantly share code, notes, and snippets.

@TomCamin
Created November 5, 2016 10:46
Show Gist options
  • Save TomCamin/2d93832b7ef1cd25191803ede9a2fbc6 to your computer and use it in GitHub Desktop.
Save TomCamin/2d93832b7ef1cd25191803ede9a2fbc6 to your computer and use it in GitHub Desktop.
apt-get update && apt-get upgrade
apt-get install mysql-server mysql-client
apt-get install apache2 apache2-doc
apt-get install php5 php5-mysql libapache2-mod-php5 php5-curl
apt-get install perl libapache2-mod-perl2
apt-get install python libapache2-mod-python
apt-get install phpmyadmin
# Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer
# redis
apt-get install build-essential
wget http://download.redis.io/releases/redis-3.2.5.tar.gz
tar xzf redis-3.2.5.tar.gz
cd redis-3.2.5
make
src/redis-server
make install
cd utils
./install_server.sh
service redis_6379 start
# Node.js
apt-get install curl
curl -sL https://deb.nodesource.com/setup_6.x | bash -
apt-get install -y nodejs
# Beanstalkd
apt-get install beanstalkd
# supervisord
apt-get install supervisor
service supervisor restart
# deployer
apt-get install git
cd /var/www/
git clone https://github.com/REBELinBLUE/deployer.git
cd deployer
git checkout 0.0.38
composer install -o --no-dev
npm install --production
-> create database
chmod -R 777 storage
chmod -R 777 public/upload
php artisan app:install
# config supervisor
cp examples/supervisor.conf /etc/supervisor/conf.d/
nano /etc/supervisor/conf.d/supervisor.conf
service supervisor restart
# config apache
nano examples/apache.conf
nano /etc/apache2/sites-available/000-default.conf
service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment