Hi
I have configured a lamp server as follows and I am not sure how the permissions should be set for the folder holding the site and sub folders:
I have created a folder under root called "sites". The sites folder is made up as follows:
sites/mysite1/public - this contains php files/folders sites/mysite1/logs - this contains the log files
The permissions for the "sites folder" and sub folders are as follows:
drwxr-xr-x apache:apache
Is what I have done correct? Some forums mention 755 access and 644 for the php files. Should I be using the apache user with these permissions or should I be using root:root with the same permissions.
Someone has suggested to me to use Apache:apache and set permissions on folders to 500 and 400 on files.
I am also not sure what the logs file permissions / owner should be.
Any help appreciated.
Thank you.