How to disable and enable curl in cPanel?

Bryan McClure

Well-known member
Registered
Joined
Jul 20, 2016
Messages
271
Points
18
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

Well-known member
Registered
Joined
Dec 15, 2015
Messages
333
Points
43
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
Hosting Provider
Registered
Joined
Mar 17, 2017
Messages
79
Points
8
Localnode, has explained everything properly. If you still are confused then PM me, I'll help you out.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,498
Points
63
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

Well-known member
Registered
Joined
Dec 15, 2015
Messages
333
Points
43
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
115
Replies
0
Views
65
Replies
0
Views
57
Replies
1
Views
87
Recommended Threads
Replies
0
Views
2,918
Replies
3
Views
4,376
Replies
10
Views
4,122
Replies
10
Views
5,113

Latest postsNew threads

Latest Hosting OffersNew Reviews

Sponsors

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