- Plesk for Windows
Unable to use DELETE, PUT or PATCH HTTP verbs with .php files or Web API. The following error message appears in a browser:
PLESK_INFO: 405 - HTTP verb used to access this page is not allowed
The page you are looking for cannot be displayed because an invalid method (HTTP verb) was used to attempt access
Specific HTTP verbs are not registered for a particular handler/file extension.
Note: This guide is intended for Plesk administrators. If you are a domain owner, please contact your service provider for assistance with configuration of HTTP methods.
Connect to a Plesk server via RDP.
Start Internet Information Services (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
In IIS Manager, expand SERVERNAME > Sites > double-click on a required domain.
In sites dashboard, click Handler Mappings > double click on PHP-php (or ExtensionlessUrl-Integrated-4.0 if this is Web API) > click Request Restrictions > switch to the Verbs tab.
Add required HTTP verbs (DELETE, PUT or PATCH) to the verbs field and click OK.
If the Executable (optional) field contains spaces, add the double-quotes to the path. For example:
CONFIG_TEXT: "C:\Program Files (x86)\Plesk\Additional\PleskPHP56\php-cgi.exe"
- Click OK to save settings
Note: If the issue still persists, refer to the following article for further troubleshooting: Troubleshooting HTTP 405 errors