我litespeed 5.1.11
在我的Centos 6.8
VPS (PHP 5.6.29) 上运行。我cUrl
在我的php代码中使用。当我以网页浏览方式运行代码时,一切正常,但是当我使用命令运行时,它给了我错误:
Fatal error: Call to undefined function curl_init()
我该如何修复它?
我用这个配置参数编译我的 php:
'./configure' '--prefix=/usr/local/lsws/lsphp5' '--disable-fileinfo' '--with-bz2' '--enable-zip' '--with-curl' '-- with-mysql' '--with-mysql-sock' '--with-sqlite' '--with-tidy' '--with-xpm-dir' '--enable-pdo' '--with-pdo- sqlite''--with-pdo-mysql''--enable-bcmath''--enable-calendar''--enable-ftp''--enable-gd-native-ttf''--enable-libxml' '--enable-soap' '--with-gettext' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-mcrypt' '--with-mysqli' '-- with-openssl' '--with-pic' '--with-png-dir' '--with-zlib' '--with-pcre-regex' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with- iconv' '--enable-json' '--with-litespeed'