Install cURL

How can I install cURL for PHP 8.3? I have looked at the PHP extensions, and it’s not in the list for installing

cURL is such a fundamental requirement for modern PHP installations that it’s almost always bundled with PHP. CyberPanel’s “Plugins” list often shows optional plugins like imagick, redis, and memcached. cURL isn’t considered “optional,” so it might not be on that list.

CyberPanel typically installs PHP versions under the /usr/local/lscp/ directory. To list PHP 8.3 modules, run the following command:

/usr/local/lsws/lsphp83//bin/php -m | grep curl

If the command output says curl, the plugin is already installed and enabled. If you’re experiencing issues, it could be a coding error or a firewall issue.

If the command doesn’t produce any output, cURL is either missing or not enabled.

I get a no file or directory when I run that

I have looked in /usr/local/lscp/ but thats as far as I get lsphp83 isn’t there

Found it was a slight mistake in the command. Switched to lsws

Curl does output

Wordpress sees it as not enabled

Yes, I fixed the error in the command, curl must be active and running.

To see which PHP version WordPress is actually using:

  1. Go to your WordPress Dashboard → Tools → Site Health → Info → Server.
    You’ll see the PHP version listed there.
  2. Or, from SSH in your site’s root directory, run: php -v
    If this doesn’t show lsphp83, then WordPress is using a different PHP build.

In CyberPanel, explicitly set your site’s PHP version:

  • Go to Websites → Manage → PHP Version
  • Make sure PHP 8.3 (lsphp83) is selected.

Then restart LiteSpeed: systemctl restart lsws

Create info.php

<?php
if (function_exists('curl_version')) {
    echo 'cURL is active: ' . curl_version()['version'];
} else {
    echo 'cURL is disabled!';
}
?>

Then open it in your browser:
https://yourdomain.com/info.php