I just had the “call to undefined function curl_init” error in PHP and was at a loss how to fix it.

I knew immediately what it was (cURL allows you to read a website via a script) but couldn’t find a way to fix it via google.

Here’s the solution on debian ubuntu php 5

sudo apt-get install php5-curl
sudo apache2ctl graceful

Once that was done all was well.

Simple solutions are wonderful aren’t they?





The following is unaffiliated with labby.co.uk

Incoming search terms for the article:

  • AIM
  • Bebo
  • Delicious
  • Digg
  • Blogger Post
  • BlogMarks
  • Facebook
  • Google Bookmarks
  • Google Buzz
  • Google Gmail
  • Hotmail
  • Identi.ca
  • LiveJournal
  • Linkatopia
  • MySpace
  • Slashdot
  • Shoutwire
  • Sphere
  • StumbleUpon
  • Technorati Favorites
  • TechNet
  • Twitter
  • TypePad Post
  • Webnews
  • Yahoo Bookmarks
  • WordPress
  • Yahoo Buzz
  • Yahoo Mail
  • Yahoo Messenger
  • Share/Bookmark

Related Posts:

  • No Related Posts