How to enable Curl in Plesk?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,494
Points
63
I want to use PHP Curl in a script and it is running on a Plesk hosting account, I don't know if Curl is enabled on Plesk as default or not. If not, how to to enable Curl in Plesk? Any Plesk experts can help me out?
 

24x7CSM

Well-known member
Registered
Joined
Sep 27, 2016
Messages
263
Points
28
If its your own dedicated server , then use command which curl if its give you the results like /usr/bin/curl , then curl is installed. If its a shared hosting account with another hosting provider service , contact their support to know if curl is enabled or not. Generally Curl is enabled in plesk environment so you can go ahead and use it in your script.
 

IgorG

Member
Registered
Joined
Jul 22, 2016
Messages
60
Points
8
PHP module is loaded, at least. For PHP7.1 and PHP5.6:


[root@ppu17-5 ~]# /opt/plesk/php/7.1/bin/php -m | grep curl
curl
[root@ppu17-5 ~]# /opt/plesk/php/5.6/bin/php -m | grep curl
curl
 

ServerHealers

Member
Registered
Joined
Jul 24, 2017
Messages
17
Points
0
Just type "curl -V" or check using php -m switch or check for curl in phpinfo page.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,494
Points
63
PHP module is loaded, at least. For PHP7.1 and PHP5.6:


[root@ppu17-5 ~]# /opt/plesk/php/7.1/bin/php -m | grep curl
curl
[root@ppu17-5 ~]# /opt/plesk/php/5.6/bin/php -m | grep curl
curl
Thanks for the commands.
I wanted to ask if that's PHP 7 and how to check curl is enabled with PHP 7 but you already include in the answer. That is awesome!

general in Plesk curl is activated by default. What problem have you?
I thought that because on cPanel curl is enabled by default but I was not sure if it was the same on Plesk.
 
Older Threads
Replies
2
Views
2,050
Replies
8
Views
2,963
Replies
5
Views
2,361
Replies
20
Views
9,908

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