Added some stuff

v3d 2016-12-12 11:35:01 +00:00
parent 5fdd71571e
commit 98babdb224

@ -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`