运行 SugarCRM 的 Ubuntu 9.10 服务器上的 cURL 库导致调度程序出现问题

运行 SugarCRM 的 Ubuntu 9.10 服务器上的 cURL 库导致调度程序出现问题

运行 Ubuntu 9.10、Apache 2.2、MySQL 5.1.37、PHP 5.2.10、SugarCRM Pro 5.5.4

我开始尝试使用 Sugar 函数调用 Scheduler,但 Sugar 抱怨道:

This system does not have the cURL libraries enabled/compiled into the PHP module (--with-curl=/path/to/curl_library). Please contact your administrator to resolve this issue. ``Without the cURL functionality, the Scheduler cannot thread its jobs.

我确认系统上安装了 curl、libcurl 包。

但现在我无法找到文件中指向的哪个文件php.ini。一些论坛说我需要一个php_curl.so文件(类似于php_curl.dllWindows 中的),但我只能找到curl.so。我应该在哪里更改extension_dir=/path/to/libraries指向?

由于我没有文件php_curl.so,我应该这样做extension=curl.so

我重新启动时的一些输出apache2如下:

PHP Warning: PHP Startup: Unable to load dynamic library './php_curl.so' - ./php_curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './curl.so' - ./curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './gd.so' - ./gd.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './mcrypt.so' - ./mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './mysql.so' - ./mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './mysqli.so' - ./mysqli.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0

任何帮助是极大的赞赏!

答案1

尝试重新安装 php5-curl 如下:

sudo apt-get install --reinstall php5-curl

相关内容