“call to undefined function curl_init” error in PHP

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?



This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

CommentLuv badge