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 whe开发者_开发技巧n executed as part of a softaculous install.
Any help is greatly appreciated!!
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.
精彩评论