VPS(PHP 5.6.29)で実行litespeed 5.1.11
しています。Centos 6.8
私cUrl
は自分のphpコードで使用しています。Web ページとしてブラウジングしてコードを実行するとすべて正常に動作しますが、コマンドで実行するとエラーが発生しました:
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'