Applicable to:
- Plesk for Windows
Symptoms
When using DELETE, PUT or PATCH HTTP methods with .php files or Web API, the following error message appears in a web-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
Cause
HTTP verb which is being used is not registered for a particular handler/file extension.
Resolution
-
Connect to the Plesk server via RDP.
-
Launch Internet Information Service (IIS) Manager at Windows Start > All Programs > Windows Administrative Tools.
-
In IIS Manager, expand SERVERNAME > Sites > click example.com > Handler Mappings (under IIS).
-
Find the handler which is used by the website and double-click on it.
For example, if this is a PHP website, double-click on PHP-php.
-
Click Request Restrictions....
-
Switch to the Verbs tab.
-
Add required verbs in to the verbs field, for example:
CONFIG_TEXT: GET,HEAD,POST,PUT,DELETE,PATCH
-
Click OK to apply the changes in both windows.
Note: If you get the warning "The specified executable for the handler must be a .dll or .exe file", that means the path in the Executable (optional) field contains spaces. In this case, use double quotation marks to specify the executable, for example:
"C:\Program Files (x86)\Plesk\Additional\PleskPHP74\php-cgi.exe"|-d siteId=10
Video instructions
Comments
0 comments
Please sign in to leave a comment.