I recently updated the system to 18.04 and it has hosed cURL. 18.04 installed PHP 7.2 but my nginx installation is using 7.1 FPM. When I run a phpinfo() from the web server, it shows the system reading a curl.ini, but the cURL module is not shown below, and code that requires cURL doesn't work.
I've read this **curl** is not working on Ubuntu 18.04 LTS and the answer (uninstall/reinstall libcurl4) didn't help.
I've done "phpenmod -v 7.1 curl", the module shows in the "enabled_by_admin" directory. There wasn't a curl.so but I copied it out of the 7.2 directory. Restarted, rebooted, everything. Still no cURL.
When I do "php -m" it shows curl, but that's for v7.2 of course, not the 7.1 FPM that my web server is running. I've been chasing my tail trying to get this running again, any help would be appreciated.
In addition, 7.1 PHP is working just fine. The only thing I can't get working is cURL on the 7.1 FPM. Thx
– CLWill Nov 11 '18 at 21:51If 1 and 2 correct then you need switch which php listen NGINX. I wrote above how you can do it.
– slava Nov 11 '18 at 21:56sudo apt-get install php7.1-curl
orsudo apt-get install php-curl
and restart php-fpm. – slava Nov 11 '18 at 22:06sudo apt install php7.1-curl
andsudo service php-fpm restart
– slava Nov 11 '18 at 22:07sudo apt-get install php7.1-curl
I getPackage php7.1-curl is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
– CLWill Nov 11 '18 at 22:08