Score:0

501 Not Implemented error when making request to localhost

fr flag

I'm using apache mpm event and php-fpm on my CentOS 8 server. I need to be able to make http requests from my server to a php api on my server, so the url of the api would be something like: http://127.0.0.1/~<account_name>/api.php. there is no problem with the url and the php file gets found on the server, but it generates a 501 Not Implemented error.

what is causing this error when I try to make http requests to localhost and how to solve the issue?

in flag
There is no way to know without seeing anything about your configuration.
Soheil avatar
fr flag
@GeraldSchneider so what configurations may cause it? apache or php?
in flag
Both are possibilities
Soheil avatar
fr flag
@GeraldSchneider there are many php extensions and apache modules installed and configured. do you have any hint for me which may be possibilities of the issue to look into?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.