0

I am building a custom softaculous script that installs and activates a theme along with wordpress. To accomplish this, I need to make a call out of the softaculous install.php file:

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://example.com/file.php");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);

After attaching some debugging, I found that the curl_init() function was failing. I tried taking this code and putting directly into another file and calling it via web, which works great, but for some reason it fails when executed as part of a softaculous install.

Any help is greatly appreciated!!

Stephan
  • 41,764
  • 65
  • 238
  • 329
Todd H. Gardner
  • 630
  • 4
  • 18

1 Answers1

1

I am from the Softaculous team. Softaculous uses the 3rd party PHP binary while installing a script. Can you please check if cURL is enabled in the 3rd party PHP binary.

If you still face any issues please open a support ticket with us we will check it.

Brijesh
  • 133
  • 1
  • 1
  • 5