Files, directories permissions/owner

Onlyme

Active member
I've searched the forum and still unsure on the best way to have this. My current permissions are:

All files 644
All directories 755

/data/ /internal_data/
All files 666
All directories 777

The owner/group is my user. Is that ok? Or should the owner/group be the php/apache user www-data?
 
Doesn't matter. I can see its automatically changing in /data/ /internal_data/ owner to www-data when required.
 
Back
Top Bottom