Curl does not work with PHP

Created:

2016-11-16 12:55:31 UTC

Modified:

2017-08-08 13:43:23 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Curl does not work with PHP

Applicable to:

  • Plesk 12.0 for Linux

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
Have more questions? Submit a request
Please sign in to leave a comment.