SOLVED curl not working in JailShell

<esc>

Member
Jun 19, 2005
15
1
153
I just got an request from a PHP developer who claims that curl is not working from PHP in a JailShell account while compiled into Apache. Is this a security feature or some misconfiguration on my side?
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,774
328
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Neither, assigning an account to jailshell would have no impact on php's curl functionality. I would look at the phpinfo to verify that curl is in fact included with your php configuration and if it is then I would stick a simple curl example page on their site to show them that it is working.

I find sometimes that developers who cannot get something to work automatically assume that its php's fault and not the code, so giving them a working example on the same domain usually takes that off the table.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Can you let us know the specific curl command the developer is running from the user's jailed shell environment? Also, post any specific error messages that appear.

Thank you.
 

<esc>

Member
Jun 19, 2005
15
1
153
Thank you every body replying. This issue is resolved ...

I routinely select curl among other options doing an new build of Apache but this time I overlooked it and nobody complained for about a year. Yesterday a developer tried to integrate a MailChimp connector into a WordPress site which showed an error in the front end, something like 'curl not found', and as I told him curl should be integrated he suggested that jailshell might be the culprit.

Erich Schreiber
 
Last edited:
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello Erich,

I'm happy to see you were able to determine the cause of the issue.

Thank you for taking the time to update this thread with the outcome!