Installation problem - 405 status code

I’ve solved the problem finally.
(Just a notice, Slim 3 works properly, I had problem just with Slim 4)

It may help someone:
I have Wampserver, and I made the virtual host: D:/whatever…/slim-site, and after that I entered the public directory in the browser.
I replaced the virtual host path to D:/whatever…/slim-site/public and now it works fine.