When I try make curl_exec, I got error:
WebCP FastCGI FAIL: No environment variables found.
Code:
  $body = 'text content';           
  $curl_url = 'https://example.org/api/';
  $myCurl = curl_init();
  $curl_headers = array('content-type' => 'text/plain');
  curl_setopt_array($myCurl, array(
    CURLOPT_URL => $curl_url,
    CURLOPT_HTTPHEADER => $curl_headers,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_SSL_VERIFYPEER => false,
    CURLOPT_POSTFIELDS => $body
  ));
  $response = curl_exec($myCurl);
  print_r($response);
  curl_close($myCurl);
PHP 7.4 Apache.
 
    