PDA

View Full Version : Call to undefined function curl_setopt()


mgibson
5th May 2009, 22:45
Hi,

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

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.

Mark.

mgibson
6th May 2009, 00:07
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.

Thanks,

Mark.