mirror of
https://gitlab.com/hacklab01/pivilion.git
synced 2026-02-04 07:40:48 +00:00
Added some stuff
parent
5fdd71571e
commit
98babdb224
1 changed files with 8 additions and 0 deletions
|
|
@ -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
|
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/`
|
`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`
|
`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`
|
`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.
|
Now reboot your RPi and log back in.
|
||||||
|
|
||||||
`sudo reboot`
|
`sudo reboot`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue