JoomlashineBlog

19
Oct

How to enable cURL extension in PHP?

Posted by on in Website Development Tutorials
  • Font size: Larger Smaller
  • Hits: 105311
  • 18 Comments

Note: This guide is for those who have FULL access to the server, when system configuration can be changed. If you are using shared hosting, please contact your hosting provider.

Step 1: Check whether cURL extension is installed/enabled or not

Within the Joomla administration area, you can view “php.ini” configurations by navigating to Site > System Information and selecting the tab “PHP Information”.

Checking PHP Info right from Joomla

At this point, search for the keyword “curl” and if it does not appear on the page, the extension might not be installed/enabled. Please proceed to the next step.

P.S: In this step, you are also able to locate where the “php.ini” configuration file is. Search for Loaded Configuration File” and you might end up with something like:

php.ini file location

Step 2: Ensure cURL extension for PHP is installed

On Windows, people often use WAMP (Windows, Apache, MySQL, PHP) bundles for local development. Fortunately, cURL extension is pre-installed with those bundles, so you can proceed to Step 3.

On Linux, it depends on which Linux distro the server is installed with, so you might need to run the appropriate command.

For example, with Ubuntu/Debian server, you need to run this command:

sudo apt-get install php5-curl

After that, restart the Apache server:

sudo /etc/init.d/apache2 restart

After the Apache server has restarted, the extension should be enabled by default. You might use the method at Step 1 to check, and if not, please proceed to the next step.

Step 3: Enable cURL extension in “php.ini” file

Load the “php.ini” file located in Step 1 into your favorite text editor (if you are using Windows, we suggest Notepad++), then search for “php_curl”. At this point, you need to uncomment the line by removing the semicolon at the beginning of the line, as below.

Editing php.ini file to enable curl

After saving the file, restart the Apache server. Double check the Joomla “PHP Information” section again to see if the extension is enabled.

cURL extension for PHP is enabled

If you see something like that, then congratulations, you have successfully enabled PHP cURL!

Rated 5 stars based on 2 votes
Rate this blog entry:
Tagged in: How-to tips

Comments

  • Marco Poet
    Marco Poet Tuesday, 23 October 2012

    This looks exactly like what I need!

    Reply Cancel
  • Marco Poet
    Marco Poet Friday, 26 October 2012

    This is my first opportunity to visit this website. I found some interesting things and I will apply to the development of my blog. Thanks for sharing useful information.

    Reply Cancel
  • Marco Poet
    Marco Poet Friday, 26 October 2012

    Thanks for posting such a great and innovative stuff over here. Your Blog is very useful. Looking forwards for your another post.

    Reply Cancel
  • Marco Poet
    Marco Poet Tuesday, 04 December 2012

    Hi Huyennt !!!

    This blog is really a very useful blog. Thank you very much for the information

  • Marco Poet
    Marco Poet Friday, 21 December 2012

    Hello Huyennt;!!
    İnformations is good. I'm following to you. I like your post :)
    Looking forwards for your another post.

    Reply Cancel
  • Marco Poet
    Marco Poet Friday, 11 January 2013

    Good work huyennt, please continue sharing such useful information. thx

    Reply Cancel
  • Marco Poet
    Marco Poet Tuesday, 05 February 2013

    Thank you very much for these help. Good job and waiting for more.

  • sanap
    sanap Thursday, 14 March 2013

    Is there a possibility curl from another server to use?

  • TuVA
    TuVA Saturday, 16 March 2013

    As my knowledge, you can't use curl from another server. For more details about this problem, please read http://curl.haxx.se/docs/manpage.html

  • Marco Poet
    Marco Poet Saturday, 16 March 2013

    Many Host Operator holding off the curl PHP command in the configuration. However, more and more applications to this command. Too bad that there is no way to redirect the result!
    I thank you for the link, and you have a nice day!

  • huyennt
    huyennt Saturday, 16 March 2013

    You are welcome, sanap.

  • sanap
    sanap Thursday, 21 March 2013

    I like your products ! Your service is very professional and her are really nice people!

    Best Regards from Berlin

    Micha

  • Marco Poet
    Marco Poet Wednesday, 20 March 2013

    great info. great help

    Reply Cancel
  • Guest
    evden eve nakliyat Saturday, 06 April 2013

    Hi Huyennt ;
    Thanks for sharing. Very nice information.

    Reply Cancel
  • Guest
    Anthony Thursday, 02 May 2013

    Awesome! Thanks so much for this!

    Reply Cancel
  • Guest
    Marcin Tuesday, 01 October 2013

    Great work.
    Thanks.

    Reply Cancel
  • Guest
    henrylin Thursday, 14 November 2013

    thank you.:D

  • tnisha2010
    tnisha2010 Wednesday, 29 January 2014

    Watch movie RoboCop online free
    Watch movie RoboCop online free in HD
    watch RoboCop online free, free download RoboCop movie, free watch RoboCop movie online, watch full movieRoboCop, downloadRoboCop in hd, watchRoboCopmovie without downloading,watchRoboCopmovie online free without downloading, online RoboCop movie, watch RoboCop movie online for free streaming, free watch RoboCop movie in hd, watchRoboCop movie free, free RoboCop movie,RoboCop, Action ,Crime ,Sci-Fi .

    Watch movie The Lego Movie online free
    Watch movie The Lego Movie online free in HD
    watch The Lego Movie online free, free download The Lego Movie movie, free watch The Lego Movie movie online, watch full movieThe Lego Movie, download The Lego Movie in hd, watch The Lego Movie movie without downloading,watchThe Lego Movie movie online free without downloading, online The Lego Movie movie, watch The Lego Movie movie online for free streaming, free watch The Lego Movie movie in hd, watch The Lego Movie movie free, free The Lego Movie movie,The Lego Movie, Animation , Action , Comedy

Leave your comment

Guest Thursday, 28 August 2014
Go to top