How to Install PHP Curl on Ubuntu

Люба х...ня

If you need to install Curl on Ubuntu, it's not a big deal! Here's a code fragment. 

Open the console ctrl+alt+t and insert the following code:

sudo apt-get install curl libcurl3 libcurl3-dev php5-curl

Next, you have to enable extensions in php.ini.

How to find the php.ini file location? It's easy. Create an ini.php file in the root directory and add the code to it:

<!--?php phpinfo();?-->

Run the command and watch. We need the Loaded Configuration File. In my case, it is here /etc/php5/apache2/php.ini.

Open it as root

sudo gedit /etc/php5/apache2/php.ini

Find ;extension=php_curl.dll. Uncomment it (remove ";" ). If this fragment is missing, add it. 

Restart Apache:

sudo /etc/init.d/apache2 restart or sudo service apache2 restart

Did you like the article? Share it with friends. 

Let’s fill the brief, shall we?