From 98babdb22407016d62f49ccd389441fe5f78a525 Mon Sep 17 00:00:00 2001 From: v3d Date: Mon, 12 Dec 2016 11:35:01 +0000 Subject: [PATCH] Added some stuff --- pivilion-manual-setup.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pivilion-manual-setup.md b/pivilion-manual-setup.md index 2091211..afa5f97 100644 --- a/pivilion-manual-setup.md +++ b/pivilion-manual-setup.md @@ -182,9 +182,17 @@ Git creates everything as root so we have to fix file permissions in Pi's home d We also need to set the permissions to our www directory so that PHP can write / move files around `sudo chown -R www-data:www-data /var/www/` + +This command set Lighty's user "www-data" from the group "www-data" as the owner of /var/www (the webserver root directory) + `sudo chmod -R 775 /var/www` + +This command tells the system that all files and directories in /var/www have the chmod of 775 which means the owner and the group can read write and execute, while everyone else can just read. + `sudo usermod -a -G www-data pi` +This adds the user pi to the group www-data, so that user can write to the /var/www directory when logged in to ssh or via sftp. + Now reboot your RPi and log back in. `sudo reboot`