On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at Plesk 360 (formerly known as My Plesk) please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

Unable to use DELETE, PUT or PATCH HTTP verbs with .php files or Web API on a Plesk for Windows server: 405 - HTTP verb used to access this page is not allowed

Follow

Comments

9 comments

  • Avatar
    Adrian Schnell (Edited )

    how to use this on an ubuntu server?

     

    I already enabled the apache module "allowmethods" and added 

    <Location "/">
    AllowMethods GET POST OPTIONS DELETE PUT
    Require all granted
    </Location>

     

    to my .htaccess. now I'm getting a HTTP 500

    0
    Comment actions Permalink
  • Avatar
    Nick Plekhov

    Hello @Adrian Schnell.
    As I can see you have submitted a ticket to Plesk Technical Support in regards to the issue mentioned.
    A reply was sent to you already. 

    0
    Comment actions Permalink
  • Avatar
    Alon Berman

    Thank you! This was my issue however there I needed to disable WebDAV implicitly in the web.config even though it was not enabled!

    <modules>
        <remove name="WebDAVModule"/>
    </modules>
    <handlers accessPolicy="Read, Execute, Script">
        <remove name="WebDAV" />
    </handlers>

    0
    Comment actions Permalink
  • Avatar
    Nikita Nikushkin

    Hello @Alon Berman,

    Yes, seems in your particular case there was a conflict between WebDAV and .NET Core IIS handlers

    Glad to see that you figured it out!

    Suppose others can find this solution useful!

    0
    Comment actions Permalink
  • Avatar
    RuschGaming

    Ive tried this but it seems its still not working for me, is there any other method i could try ?

    1
    Comment actions Permalink
  • Avatar
    Alexey Lapshin

    Hello @RuschGaming

    Please submit a ticket to investigate the issue further https://support.plesk.com/hc/en-us/articles/213608509-How-to-submit-a-request-to-Plesk-support-

    0
    Comment actions Permalink
  • Avatar
    Suhail S Alkhyeli (Edited )

    Hello @RuschGaming

     

    Let's put this into our web.config file under <configuration> and <system.webServer>

    <modules>
        <remove name="WebDAVModule" />
    </modules>
    <handlers>
        <remove name="WebDAV" />
        <remove name="PHP56_via_FastCGI" />
        <add name="PHP56_via_FastCGI"
            path="*.php"
            verb="*"
            modules="FastCgiModule"
            scriptProcessor="C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP56\php-cgi.exe"
            resourceType="Either"
        />
    </handlers>
    0
    Comment actions Permalink
  • Avatar
    Suhail S Alkhyeli (Edited )

    or

    <handlers>
      <remove name="PHP73x86_via_FastCGI" /> 
    <!-- We instruct to delete the existing handler with that name --> <add name="PHP73x86_via_FastCGI" path="*.php" verb="GET,HEAD,POST,DELETE" modules="FastCgiModule" scriptProcessor="D:\Program Files (x86)\PHP\v7.3\php-cgi.exe" resourceType="Either" />
    <!-- We give the new values for the handler. It is basically the old handler but we added the DELETE method to the verbs --> </handlers>
    0
    Comment actions Permalink
  • Avatar
    Webreact (Nils)

    How do we accomplish this on Plesk for Linux?

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request