Setting the Correct File Owner
-
The doc page says that for Apache+PHP apps, permissions should be "www-data.www-data". Is that a typo? If not, how do I make the change?
What should the owner be for:
- folders
- subfolders
- files
- htaccess
- index.php
Thanks!
-
@humptydumpty
chown -R www-data:www-data /app/data/public
will make the whole public folder owned by apache.Change
/app/data/public
to a file or folder of choice. -
@humptydumpty said in Setting the Correct File Owner:
"www-data.www-data". Is that a typo?
A typo with the separator which should be : and not a . as in
www-data:www-data
@murgero has provided the right command here above.
-
@humptydumpty yes that is correct
-
@humptydumpty said in Setting the Correct File Owner:
Thanks guys. I'm used to cPanel
Now welcome to HIGH-CLASS simplified servers operations, through Cloudron web administrators' secret society