I have a Rocky 9 server running Apache/2.4.57, PHP 8.1.27, curl 7.76.1 all installed from repo (dnf/yum)
I am getting this issue both on websites from the old server and on the new wordpress website I setup from scratch. The websites themselves work without any issues. The only issue I am seeing is in the wordpress backend.
I do not believe this is a firewall issue because I can successfully run curl -v 198.143.164.251 at the CLI and it returns the website. I also wrapped it in a php script and it pulled the full redirected website.
Despite this in site health I am seeing the error “Your site is unable to reach WordPress.org at 198.143.164.251, and returned the error: cURL error 7:”
I can install plugins by using the Upload Plugin feature without error, but I can’t use the built in Add New Plugin feature as I get the error “An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.”
I have also tried to disable selinux, but no change.