Apache2 is not accepting PUT request method

1

I tried to make a request of type PUT in a project of mine, but the following error is being returned:

  

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

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

From what I've come to realize this seems to be an Apache problem, not the framework I'm using, since Laravel's error page is quite different from the Apache2 page.

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

I've never had this problem before.

Could someone please let me know if it is necessary to configure apache to resolve this?

    
asked by anonymous 07.09.2016 / 18:50

1 answer

2

I can not really explain what caused the problem, but I was able to solve this problem by simply installing libapache2-mod-php5 .

See:

sudo apt-get install libapache2-mod-php5

Now it's working properly.

Note : I did not need to set <limit />

Reference:

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

    
07.09.2016 / 19:05