How to enable Curl in Plesk?

David Beroff

Well-known member
Joined
Jun 14, 2016
Messages
935
Best answers
0
Ratings
75 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
219
Best answers
0
Ratings
27
Points
0
#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
278
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
935
Best answers
0
Ratings
75 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
541
Replies
8
Views
571
Replies
5
Views
720
Replies
20
Views
3,247
Latest Threads
Replies
0
Views
5
Replies
0
Views
7
Replies
9
Views
50
fwh
Replies
5
Views
53
Recommended Threads
Replies
2
Views
1,535
Replies
1
Views
206
Replies
19
Views
1,798
Replies
1
Views
645

Latest postsNew threads

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