Apache installation - file owner & permissions?
-
I have Apache installed and it runs under the user
www-dataand the groupwww-data.
This is a Debian install so html files are by default located under/var/www/htmland that is also the document root in Apache.I was wondering what permission and owner should files like html, php etc have?
Also where should php include files be located? Somewhere under the document root (for example
/var/www/html/includeor outside (like/var/www/include/) or somewhere else? -
@Pete-S said in Apache installation - file owner & permissions?:
Also where should php include files be located? Somewhere under the document root (for example /var/www/html/include or outside (like /var/www/include/) or somewhere else?
Normally the structure is...
/var/www/html/site-name/include/
-
@Pete-S said in Apache installation - file owner & permissions?:
I was wondering what permission and owner should files like html, php etc have?
Normally you just do...
chown www-data:www-data -R /var/www/html