How to enable Curl in Plesk?

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
981
Best answers
0
Ratings
86 1
Points
28
#1
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
Joined
Sep 27, 2016
Messages
225
Best answers
0
Ratings
30
Points
28
#2
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.
 

CaygriWEB

Well-known member
Joined
Jul 4, 2017
Messages
280
Best answers
0
Ratings
10
Points
18
#4
general in Plesk curl is activated by default. What problem have you?
 

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
981
Best answers
0
Ratings
86 1
Points
28
#6
PHP module is loaded, at least. For PHP7.1 and PHP5.6:


[[email protected] ~]# /opt/plesk/php/7.1/bin/php -m | grep curl
curl
[[email protected] ~]# /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
573
Replies
8
Views
704
Replies
5
Views
764
Replies
20
Views
3,598
Latest Threads
  • Deleted
  • Deleted by VirtuBox
  • Reason: promotion
Replies
0
Views
2
Replies
0
Views
13
Replies
2
Views
11
Replies
2
Views
28
Recommended Threads
Replies
0
Views
1,397
Replies
2
Views
1,284
Replies
0
Views
163

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