• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

Issue Can't load PHP curl

32bits

New Pleskian
Server operating system version
Ubuntu
Plesk version and microupdate number
Obsidian 18.0.70
Hope someone can help. I can't use curl in PHP, Plesk Obsidian 18.0.70.

Curl worked fine in php7.x. Following plesk upgrade, curl is not available in php8.4.8. Curl (lib) doesn't appear in Tools & Settings > PHP Settings > 8.48 FPM "Settings for 8.4.8 FPM application" Extensions list, and so it cannot be enabled.

There's no curl.so in the /opt/plesk/php/8.4/lib dir. Apt installing php7 curl and the copying the curl.so into the php8 lib dir does not enable curl in PHP 8.4.8. Checking PHPinfo for PHP8.4.8 shows "'--without-curl'" in the "Configure Command" section (side note: if I install & use PHP 7.4, curl works fine).

Uncommenting the curl extension line in php.ini only causes the following error when loading PHP, even though curl.so exists in the listed path.

"PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: /opt/plesk/php/8.4/lib/php/modules/curl (/opt/plesk/php/8.4/lib/php/modules/curl: cannot open shared object file: No such file or directory), /opt/plesk/php/8.4/lib/php/modules/curl.so

Curl does work in shell. And, if I look at php modules with php -m, curl is listed as loaded!

Does anyone know how to enable curl in php8.4? Thank you
 
Install PHP 8.4 via Plesk so you can manage the PHP extensions directly from:
Plesk Panel → Tools & Settings → PHP Settings → Select PHP 8.4 → Extensions Tab → Enable curl
#systemctl restart apache2
#systemctl restart php8.4-fpm

1750876428270.png
 
Thanks but I've already done this.

I was already installing php8 through plesk in the way you suggest. Curl simply doesn't appear on the extensions tab. Other extensions are there, but no curl, even though curl is visible in php -m.

I suspect that the PHP config --without-curl has something to do with it as per my first post. But I don't know how to fix this especially as I'm installing it via plesk, not manually, for the exact plesk management reason you mention.

Thanks
 
Hi @32bits, I didn't have the PHP 8.4 installed prior to reviewing your post, I installed using the Tools & Settings->Plesk->Updates> Add/Remove Components

https://<replace with your plesk-cp-domain>:8447/installer/summary.html

Can you try to remove and reinstall PHP 8.4 via Plesk.? Hopefully that workaround resolve the issue for you.
1750884049353.png
 
Back
Top