From 9ceaa905306a1a63a8ec17771f06daef3548968e Mon Sep 17 00:00:00 2001 From: Joe Haig Date: Wed, 31 Aug 2016 09:45:00 +0100 Subject: [PATCH 1/3] Change lighttpd default directory --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9d7cbe2f..fa4c3a59 100644 --- a/README.md +++ b/README.md @@ -55,18 +55,21 @@ www-data ALL=(ALL) NOPASSWD:/sbin/ifdown wlan0,/sbin/ifup wlan0,/bin/cat /etc/wp www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli reconfigure ``` -Once those modifications are done, git clone the files to `/var/www`. +Once those modifications are done, git clone the files to `/var/www/html`. +'''Note,''' for older versions of Raspbian (before Jessie, May 2016) use +`var/www` instead. ```sh -sudo git clone https://github.com/billz/raspap-webgui /var/www +sudo rm -rf /var/www/html +sudo git clone https://github.com/billz/raspap-webgui /var/www/html ``` Set the files ownership to `www-data` user. ```sh -sudo chown -R www-data:www-data /var/www +sudo chown -R www-data:www-data /var/www/html ``` Move the RaspAP configuration file to the correct location ```sh sudo mkdir /etc/raspap -sudo mv /var/www/raspap.php /etc/raspap/ +sudo mv /var/www/html/raspap.php /etc/raspap/ sudo chown -R www-data:www-data /etc/raspap ``` Reboot and it should be up and running! From 0a9b2363de6863dd8d2023b47ef6642bf1d7e18e Mon Sep 17 00:00:00 2001 From: Joseph Haig Date: Wed, 31 Aug 2016 09:48:02 +0100 Subject: [PATCH 2/3] Correct markdown for bold --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fa4c3a59..f8892d0e 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli reconfigure ``` Once those modifications are done, git clone the files to `/var/www/html`. -'''Note,''' for older versions of Raspbian (before Jessie, May 2016) use +**Note,** for older versions of Raspbian (before Jessie, May 2016) use `var/www` instead. ```sh sudo rm -rf /var/www/html From dc6bdc028ca085883876f64cfcc83f8cbc3b58bb Mon Sep 17 00:00:00 2001 From: Joseph Haig Date: Wed, 31 Aug 2016 09:48:56 +0100 Subject: [PATCH 3/3] Add missing / --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f8892d0e..039044b3 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ www-data ALL=(ALL) NOPASSWD:/sbin/wpa_cli reconfigure Once those modifications are done, git clone the files to `/var/www/html`. **Note,** for older versions of Raspbian (before Jessie, May 2016) use -`var/www` instead. +`/var/www` instead. ```sh sudo rm -rf /var/www/html sudo git clone https://github.com/billz/raspap-webgui /var/www/html