From 9fedce6c76f9d3a7ccffc542eac231c522bd4099 Mon Sep 17 00:00:00 2001 From: v3d Date: Wed, 7 Dec 2016 22:33:51 +0000 Subject: [PATCH] Added some stuff --- pivilion-manual-setup.md | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/pivilion-manual-setup.md b/pivilion-manual-setup.md index c9ad7a9..bfdfc82 100644 --- a/pivilion-manual-setup.md +++ b/pivilion-manual-setup.md @@ -57,16 +57,26 @@ You will see lighttpd's placeholder page. ### Install PHP and modules -sudo apt-get install php5-cgi php5-gd +sudo apt-get install php5-cgi PHP (Hypertext Preprocessor) is a server-side scripting language designed primarily for (but not limited to) web development. We use it to run our basic gallery generation script. -The GD library (php5-gd) is a graphics drawing library that provides tools for manipulating image data. - php5-cgi is a PHP to CGI interpreter. CGI (Common Gateway Interface ) offers a standard protocol for web servers to interface with executable programs running on a server that generate web pages dynamically. The interpreter is how Lighty handles PHP. Apt will install all required dependencies. +### Enable PHP support in Lighty + +Enable the fastcgi module and the php configuration with + +sudo lighty-enable-mod fastcgi + +sudo lighty-enable-mod fastcgi-php + +Reload the lighttpd daemon + +sudo service lighttpd force-reload + ### Install Hostapd sudo apt-get install hostapd @@ -132,7 +142,7 @@ Make sure you are root before doing these steps. The root account is disabled on sudo -s ### Pull config and settings from Gitlab -cd / (DO NOT TO SKIP THIS STEP) +cd / (DO NOT SKIP THIS STEP) git init @@ -140,4 +150,16 @@ git remote add origin https://gitlab.com/hacklab01/pivilion.git git fetch origin -git checkout -f --track origin/master \ No newline at end of file +git checkout -f --track origin/master + +### Fix some permission issues + +Git creates everything as root so we have to fix stuff in Pi's home directory by issuing + +sudo chown -R pi:pi /home/pi + +That's it - everything should be working now! + +Please note that Pivilion is in public beta and is sure to have some errors. Don't hesitate to help development by raising issues here https://gitlab.com/hacklab01/pivilion/issues + +Now go make some darknet of things galleries! :) \ No newline at end of file