I am struggling for days to enable PUT and DELETE request for my PHP app at MS Azure. Some answers I found suggest to remove the WebDAV module from IIS.
How would I do so?
I am struggling for days to enable PUT and DELETE request for my PHP app at MS Azure. Some answers I found suggest to remove the WebDAV module from IIS.
How would I do so?
This response is good. Basically put it in the Web.config. This is what @shiitake is doing.
I've beeen using that solution for a while but its annoying because I have to maintain it in my Web.config when the rest of the developers don't. So I removed it from IIS all together.
On first try I got,
Error: Cannot write configuration file due to insufficient permissions
. Full disclosure, my coworker fixed it for me and sent the following instructions. (Maybe someone can edit and clarify the steps.)I am hosting a PHP application in Azure App Services and I was able to solve this problem by manually creating a file called web.config and adding it to the root directory of my web application.
Here is the entire content of that file.
You'll notice in the handlers section it references PHP56_via_FastCGI. This is specific to PHP 5.6. If you are using a different version of PHP you will need to update the name and file path to reflect that version.
I think there is already solution for your problem in previous post in stackoverflow.
Try this out and hopefully it helps! https://stackoverflow.com/a/16275723/3203213
I've spent a whole day on this and tried every solution I ran into yet nothing worked for me. What finally worked was turning off the "WebDAV Publishing" feature from Turn Windows features on or off. This is located under:
Internet Information Services\World Wide Web Services\Common HTTP Features\WebDAV Publishing.