Apache2 is not accepting PUT request method

Asked

Viewed 93 times

1

I tried to file a requisition for the guy PUT in a project of mine, but is being returned the following error:

The requested method PUT is not allowed for the URL /index.php

I’m using PHP to make this request, but specifically using the Laravel 5 framework.

From what I could see this seems to be an apache problem, and not the framework I’m using, since the Laravel error page is quite different from the Apache2 page.

This page, as it seems, should be returned by Apache:

Método not Allowed - Apache2

I’ve never been in this trouble before.

Please, could someone let me know if it is necessary to configure apache to resolve this?

1 answer

2


I cannot explain exactly what caused the problem, but I have now solved this problem by simply installing the libapache2-mod-php5.

Behold:

sudo apt-get install libapache2-mod-php5

Now it’s working properly.

Observing: I didn’t need to set up the <limit />

Reference:

It seems that the problem was related to libapache2-mod-php5filter installed. When installing libapache2-mod-php5, he removed the previous module.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.