Installing Curl in PHP5 & Apache

Some times you might require cURL extension for your PHP installation. I recently needed this to run a Twitter plugin in my Elgg.
Before installing lets check whether we already have installed cURL.
Inorder to do that go to http://localhost/info.php and search for curl. If you find it then you have already installed.
If not then following are the steps to install cURL in PHP5 & Apache.

  • Open your terminal and type this command: 
    sudo apt-get install curl libcurl3 libcurl3-dev php5-curl php5-mcrypt
  • After installing, open php.ini file (mine is at /etc/php5/apache2/php.ini ) and add this command:
  • Save the file and restart apache server: /etc/init.d/apache2 restart

Thats all !


About kishanthan

I’m currently working as a Software Engineer at WSO2, an open source software company. I hold an Engineering degree, majoring in Computer Science & Engineering field, from University of Moratuwa, Sri Lanka.
This entry was posted in Elgg, How to and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s