Folder permissions in Azure web sites

后端 未结 4 1859
温柔的废话
温柔的废话 2021-01-12 17:52

Just getting my head around the new Azure web sites feature and hitting my first obstacle. I\'m deploying a PHP site which writes cache data to the file system, but the app

相关标签:
4条回答
  • 2021-01-12 18:30

    Is the folder that the app is trying to write to under the site's folder?

    It's my understanding that folder permissions cannot be set/changed. But I haven't seen anything from Microsoft that definitively says "yes" or "no" to that.

    0 讨论(0)
  • 2021-01-12 18:39

    It should be possible using webdeploy.

    However I don't think there is a way do it without manually setting up the webdeploy package - as described in the post http://blogs.msdn.com/b/azureappgallery/archive/2013/04/03/set-file-folder-permissions-for-your-content-on-azure-website-using-web-deployable-package.aspx.

    0 讨论(0)
  • 2021-01-12 18:40

    Your site can only write to locations under C:\DWASFiles\Sites\[siteName]\VirtualDirectory0 and to the %TEMP% folder.

    Two caveats here:

    1. Stuff can't be written directly under VirtualDirectory0, you have to create a subfolder under there and place your files in that subfolder
    2. The %TEMP% folder really is temporary! If your site instance goes down for any reason and is brought back up somewhere else then everything in your %TEMP% folder will be gone. Use it only for files that really are temporary.
    0 讨论(0)
  • 2021-01-12 18:50

    Folder permissions cannot be set/customized. This means whatever location your app writes to should be under your site root.

    0 讨论(0)
提交回复
热议问题