Last active
September 22, 2017 22:56
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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