Article ID: 120783, created on Mar 28, 2014, last review on May 11, 2014

  • Applies to:
  • H-Sphere 3.6.3

Symptoms

"Curl" does not work in PHP, the following errors are present in php_error.log

PHP Warning:  PHP Startup: Unable to load dynamic library \'/hsphere/shared/php55/lib/php/extensions/no-debug-non-zts-20121212/curl.so\' - libcurl.so.3: cannot open shared object file: No such file or directory in Unknown on line 0

 PHP Fatal error:  Call to undefined function curl_init() in /hsphere/local/home/user/domain.com/curltest.php on line 3

Cause

Curl is not installed

[root@~]# curl google.com
-bash: curl: command not found

Bug (HSPH-100)

Resolution

Install curl on the server:

# yum install curl

6b908665c0d1eca5bdd0141a32fd712a 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF