How to disable and enable curl in cPanel?

Bryan McClure

Well-known member
Joined
Jul 20, 2016
Messages
189
Best answers
0
Ratings
15
Points
18
#1
I want to check curl if it is enabled in cPanel or not. My website has a function that works with curl but I am doubiting it is not enabled on my hosting. Is there a way to check this?
 

Localnode

Moderator
Staff Member
Joined
Dec 15, 2015
Messages
256
Best answers
1
Ratings
75 1
Points
28
#2
I want to check curl if it is enabled in cPanel or not. My website has a function that works with curl but I am doubiting it is not enabled on my hosting. Is there a way to check this?
Make a PHP info file. Open a text editor such as Notepad or Notepad++. Change the file name to i.php, and add the below code into that file.
Code:
<?php

// Show all information, defaults to INFO_ALL
phpinfo();

?>
Upload it to your public_html and open it up in your web-browser.
Search for "curl" you should see something like this:
enable curl in cPanel.png

Obviously, it being enabled or disabled depends on if it is enabled or disabled.

It's easy enough to enable it, but you will need root access.

1. Login to WHM as the 'root' user.
2. In the Find box type easy.
3. Click EasyApache (Apache Update).
4. Leave your existing defaults, and then click Start customising based on the profile.
5. Leave your existing defaults, and then click Next Step.
6. Leave your existing defaults, and then click Next Step.
7. Leave your existing defaults, and then click Next Step.
8. Click Exhaustive Options List.
9. Click the curl options, and then click Save and build.

During this process, cPanel rebuilds Apache and PHP with the options selected. This process can take some time to complete and should not be interrupted as it can lead to problems on your server.

Or simply ask your host to enable it if you do not have root access.
 

BlaZeX

Active member
Joined
Mar 17, 2017
Messages
76
Best answers
0
Ratings
3
Points
8
#3
Localnode, has explained everything properly. If you still are confused then PM me, I'll help you out.
 

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
973
Best answers
0
Ratings
83 1
Points
28
#4
Seem curl is enabled by default on all hosting servers today
I only want to know what is the main functions of it? and how to disable it if needed?
 

Localnode

Moderator
Staff Member
Joined
Dec 15, 2015
Messages
256
Best answers
1
Ratings
75 1
Points
28
#5
Taken from http://php.net/manual/en/intro.curl.php
PHP supports libcurl, a library created by Daniel Stenberg, that allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl currently supports the http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with PHP's ftp extension), HTTP form based upload, proxies, cookies, and user+password authentication.
To disable it, you will also need root access. On step 9 simply uncheck the cURL extensions. A lot of things needs it, though.
 
Latest Threads
Replies
0
Views
1
Replies
0
Views
2
Replies
0
Views
4
Replies
0
Views
13

Latest Hosting OffersNew Reviews

Sponsors

Latest Blog ArticlesMost Viewed Threads

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top