title: PUT and DELETE requests not allowed in apache 2.4
body: <p>I'm trying to create RESTFul API on my server using PHP. No problems with GET or POST requests, but I can't get PUT or DELETE requests working.</p>
  <p>At first, I tried without configuring Apache: all I get is a 403 Unauthorized error. Then I use Limit:</p>
  <pre class="lang-apache prettyprint-override"><code>&lt;Limit GET HEAD POST PUT DELETE OPTIONS&gt;
    Require all granted
  &lt;/Limit&gt;
  </code></pre>
  <p>I get a 405 Method Not Allowed error.</p>
  <p>From here, I've tried multiple configurations (AllowMethods, ...) but still get the 405 error.
  When I activate upper level of Apache's logs, It indicate all is fine, but still return 405 code:</p>
  <pre><code>[authz_core:debug] [pid 43259] mod_authz_core.c(817): AH01626: authorization result of Require all granted: granted
  [authz_core:debug] [pid 43259] mod_authz_core.c(817): AH01626: authorization result of &lt;RequireAny&gt;: granted
  [http:trace3] [pid 43259] http_filters.c(1125): Response sent with status 405, headers:
  [http:trace5] [pid 43259] http_filters.c(1134):   Date: Thu, 06 May 2021 06:55:24 GMT
  [http:trace5] [pid 43259] http_filters.c(1137):   Server: Apache/2.4.41 (Ubuntu)
  [http:trace4] [pid 43259] http_filters.c(955):   Allow: GET,POST,OPTIONS,HEAD
  [http:trace4] [pid 43259] http_filters.c(955):   Content-Length: 306
  [http:trace4] [pid 43259] http_filters.c(955):   Content-Type: text/html; charset=iso-8859-1
  </code></pre>
  <p>I read sometimes server web applications like Jira can cause this, but I only install PhpMyAdmin.</p>
  <p>How can I use PUT or DELETE requests ?</p>
  <p><em>NOTE: Apache/2.4.41 (Ubuntu)</em></p>