Call to undefined function curl_setopt()

Discussion in 'Installation/Configuration' started by mgibson, May 5, 2009.

  1. mgibson

    mgibson New Member


    I've recently moved a test magento site from ZendCore on windows to ispconfig3 on ubuntu. the main site works fine, until i hit

    I encounter the following:

    Fatal error: Call to undefined function curl_setopt() in /var/www/clients/client0/web1/web/lib/Varien/Http/Adapter/Curl.php on line 94
    line 94 is:

    curl_setopt($this->_getResource(), CURLOPT_URL, $url);
    Thank you for your assistance.

  2. mgibson

    mgibson New Member

    Now Solved

    php5-curl is not installed by default in the ispconfig3 setup guide.

    to enable this open terminal
    sudo apt-get install php5-curl

    no need to restart apache, works instantly.


  3. ramasamy

    ramasamy New Member

    Thank you.. After I installed PHP5-curl it working well. But for me needed APACHE RESTART to get effective.

Share This Page