'How to enable curl on Wordpress

How to enable cURL on Wordpress.

I have install cURL on my server and I have also enabled in PHP.ini file(removed ; before extension) but still I'm getting error like cURL not available.

cURL version on server

 curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4     libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3  Release-Date: 2018-01-24  Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb     smbs smtp smtps telnet tftp   Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL

Site Health Screenshot

enter image description here



Solution 1:[1]

  1. Check your php version php -version

  2. Install the same-version php-curl: sudo apt install php7.4-curl (or whatever version you have)

  3. Restart the server so Wordpress sees it (this is what fixed my problem).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Aaron