I was trying to open a file and write to it with PHP at /var/wwwfolder
but it wasn't working so I did
sudo chmod 777 /var/www
now I want to set the permissions for /var/www to the default.
what are the default permissions for /var/www?
|
I was trying to open a file and write to it with PHP at
now I want to set the permissions for |
|||||
|
|
The permissions on this folder are:
and the files inside the folder are:
|
|||
|
|
|
The default permission for As for anything inside
|
|||||||||
|
|
Make sure the group is www-data on '/var/www'.
Make it writable
set group id for subfolders
add your username to the group
give yourself ownership
|
|||||||||||||||||||||
|