Download failed cURL error 7: . Can't update anything

Please, help. I want to update WordPress(or plugins), but always the same error: 'Download failed: cURL error 7: .'

OS: Linux Fedora 30. Server: nginx. DB: MySQL 8.0. PHP 7.3

I have installed all the needed PHP extensions. Curl is working - I tested to download google HTML using curl and info.php says thas cURL is enabled.

Why WordPress can't update anything? Nginx error.log does not have mistakes. On another laptop (Windows 10) with the same development environment, everything works.

What information should I give you to solve this problem?

Topic curl updates Wordpress

Category Web


You need to allow all outgoing connections from your hosting side. Ask your hosting provider to do that if you don't know how. This will fix the issue.


In my case (running on Centos 8), this error was caused by SElinux preventing apache (the login running the web server) from using the connect(2) system call.

Try running in permissive mode -- if that works, change your SELinux configuration as appropriate.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.