centos6 上的 fosrestbundle 对 post 请求无响应

fosrestbundle on centos6 no response on post request

我用 Symfony 2.6 和 fosrestbundle 做了一个 api。 api 工作正常。

在我的本地环境中一切正常。但是当它转到在线服务器时,我发出请求并挂在那里加载。

我在发出请求时遇到错误:

我在启用和禁用 ssl 的过程中搞砸了。

cURL error 52: Empty reply from server (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 

这是我在本地环境中测试成功但在在线服务器上出现故障的代码。

服务器是 linux Centos 6 和 Apache2

$ch = curl_init();

    $params = array(
        'nombre' => 'Test name',
        'fecha' => '2016-02-18 10:00:00',
        'telefono' => '555-5555',
        'comentarios' => 'No comments'
    );

    curl_setopt($ch, CURLOPT_URL,$url.'?access_token=' . $accessToken);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params));
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded'));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    $server_output = curl_exec ($ch);

    curl_close ($ch);

我运行没主意了。我在互联网上查找但找不到任何信息。我对此感到盲目。

REST Api 动作控制器(使用 FOSRestBundle)return 编辑了整个学说实体...服务器 运行 out of memory/cpu.

我现在 return 一个简单的 json 响应,一切正常。