Using the latest version of Plesk (on Windows Server 2008 R2), when I create a new sub-domain the file permissions are always wrong. Plus they always seem to reset themselves. I assume Plesk is doing some security housekeeping but what am I doing wrong?
Take a sub-domain example:
- I create the sub-domain so that it will be isolated in its own folder structure
- Copy in my application files (At this stage the application will not run as the permissions are wrong, I need to give permissions to the IWPD_* user)
- In plesk I often try to go into the File Manager and add this account and give them full permissions. (This often isn't enough the applicationw may still not run)
- The final and most important step is going to the actual folders themselves, going to Properties > Security and then manually adding the required account(s).
As soon as the final step is done the application will run perfectly, until perhaps plesk does it's security housekeeping routine and wipes the permissions.
What I want to happen is that the permissions are automatically inherited by any files and folders that I are children of the httpdocs directory.
I have setup a build server that will deposit a compiled build of the application everytime there is a commit to the repository. The end result is dumped into a plesk dub-domain httpdocs directory. I want to make sure that any files / folders that end up there will have the necessary permissions and the application will run without manually having to set them.
Many thanks for any help clearing this up for me!