Skip to content

Instantly share code, notes, and snippets.

@bistoco
Created July 21, 2017 22:42
Show Gist options
  • Select an option

  • Save bistoco/f55fba02a396b881edb196a104af0d81 to your computer and use it in GitHub Desktop.

Select an option

Save bistoco/f55fba02a396b881edb196a104af0d81 to your computer and use it in GitHub Desktop.

Revisions

  1. bistoco created this gist Jul 21, 2017.
    27 changes: 27 additions & 0 deletions kerberos.web.install
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    #/bin/bash

    sudo apt-get update && sudo apt-get upgrade
    curl -sL https://deb.nodesource.com/setup | sudo bash -
    sudo apt-get install git php7.0-cli php7.0-gd php7.0-mcrypt php7.0-curl php7.0-mbstring php7.0-dom php7.0-zip php7.0-fpm nodejs npm
    sudo ln -s /usr/bin/nodejs /usr/bin/node

    sudo apt-get install nginx

    sudo rm -f /etc/nginx/sites-enabled/default
    sudo nano /etc/nginx/sites-enabled/default

    mkdir -p /var/www
    cd /var/www && sudo git clone https://github.com/kerberos-io/web && cd web

    curl -sS https://getcomposer.org/installer | sudo php
    sudo mv composer.phar /usr/bin/composer
    sudo composer install

    sudo chmod -R 777 storage
    sudo chmod -R 777 bootstrap/cache
    sudo chmod 777 config/kerberos.php

    sudo npm -g install bower

    cd public
    sudo bower --allow-root install