Skip to content

Instantly share code, notes, and snippets.

@K-Ko
Last active September 22, 2017 22:56
Show Gist options
  • Save K-Ko/30301a7bbb6c15b5bdda8aeeb512eb6c to your computer and use it in GitHub Desktop.
Save K-Ko/30301a7bbb6c15b5bdda8aeeb512eb6c to your computer and use it in GitHub Desktop.
Full automatic install of https://github.com/ColinWaddell/CurrantPi from scratch incl. web server
#!/bin/bash
#
# wget -q -O - https://gist.githubusercontent.com/K-Ko/30301a7bbb6c15b5bdda8aeeb512eb6c/raw/currant_pi_from_scratch.sh | bash
#
# Web server
sudo apt-get install lighttpd php-cgi -y
sudo lighttpd-enable-mod fastcgi fastcgi-php
sudo service lighttpd force-reload
# Backup webserver's current content
sudo mv /var/www/html /var/www/html_backup
# Install CurrantPi
sudo git clone https://github.com/ColinWaddell/CurrantPi.git /var/www/html
sudo chown -R pi:pi /var/www/html
# done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment