Назад | Перейти на главную страницу

ОШИБКА CURL: сбой Recv: сброс соединения одноранговым узлом - PHP Curl

Вчера я разместил вопрос о stackoverflow Вот но думаю, что это может быть связано с сервером. Я подключаюсь с помощью функции PHP curl к серверу, который затем генерирует файл PDF и отправляет его обратно, я получаю сообщение об ошибке только при первом запуске сценария, при его повторном выполнении все работает отлично. Для получения дополнительной информации проверьте вопрос о stackoverflow.

Я получаю это сообщение

* About to connect() to 196.41.139.168 port 80 (#0)
*   Trying 196.x.x.x... * connected
* Connected to 196.x.x.x (196.x.x.x) port 80 (#0)
> POST /serve/?r=pdf/generatePdf HTTP/1.1
Host: 196.x.x.x
Accept: */*
Content-Length: 7115
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue

* Recv failure: Connection reset by peer
* Closing connection #0
012 20:23:49 GMT
< Server: Apache/2.2.15 (CentOS)
< X-Powered-By: PHP/5.3.3
< Connection: close
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=UTF-8
< 
* Closing connection #0

Теперь, почему я спрашиваю об этом на serverfault, это выяснить, может быть, на сервере есть какой-то параметр, который нужно установить, это VPS, на котором установлен CENTOS 6 с WKHTML2PDF, LAMP и CURL. Я могу получить любую информацию, необходимую для решения этой проблемы ... У меня заканчиваются идеи.

ЖУРНАЛ ОШИБОК, КАК обнаружен в / var / log / httpd / error_log

[Sun Apr 22 03:31:03 2012] [notice] Digest: generating secret for digest authentication ...
[Sun Apr 22 03:31:03 2012] [notice] Digest: done
[Sun Apr 22 03:31:04 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Sun Apr 22 07:57:56 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/phpMyAdmin
[Sun Apr 22 15:51:09 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/admin
[Sun Apr 22 19:00:15 2012] [error] [client 135.109.198.196] File does not exist: /var/www/html/manager
[Sun Apr 22 21:16:46 2012] [error] [client 69.53.223.250] File does not exist: /var/www/html/manager
[Sun Apr 22 21:26:22 2012] [error] [client 186.28.229.2] File does not exist: /var/www/html/manager
[Sun Apr 22 22:00:51 2012] [error] [client 175.41.136.19] File does not exist: /var/www/html/manager
[Sun Apr 22 23:15:10 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/admin
[Mon Apr 23 06:53:08 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/admin
[Mon Apr 23 11:20:57 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 12:26:48 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 12:26:48 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 12:26:48 2012] [notice] Digest: done
[Mon Apr 23 12:26:49 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 13:31:20 2012] [error] [client 41.161.9.163] File does not exist: /var/www/html/favicon.ico
[Mon Apr 23 13:31:20 2012] [error] [client 41.161.9.163] File does not exist: /var/www/html/favicon.ico
[Mon Apr 23 14:54:06 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/db
[Mon Apr 23 15:56:24 2012] [error] [client 41.161.9.163] Directory index forbidden by Options directive: /var/www/html/
[Mon Apr 23 19:36:45 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:38:24 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:38:24 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:38:24 2012] [notice] Digest: done
[Mon Apr 23 19:38:25 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 19:40:32 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:40:33 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:40:33 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:40:33 2012] [notice] Digest: done
[Mon Apr 23 19:40:33 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 19:40:40 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:40:40 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:40:40 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:40:40 2012] [notice] Digest: done
[Mon Apr 23 19:40:40 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 19:40:57 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:40:58 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:40:58 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:40:58 2012] [notice] Digest: done
[Mon Apr 23 19:40:58 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 19:41:29 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:43:58 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:43:58 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:43:58 2012] [notice] Digest: done
[Mon Apr 23 19:44:00 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 19:57:28 2012] [notice] caught SIGTERM, shutting down
[Mon Apr 23 19:57:29 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Apr 23 19:57:29 2012] [notice] Digest: generating secret for digest authentication ...
[Mon Apr 23 19:57:29 2012] [notice] Digest: done
[Mon Apr 23 19:57:29 2012] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Mon Apr 23 22:40:29 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/dbadmin
[Mon Apr 23 23:03:09 2012] [error] [client 200.98.148.21] File does not exist: /var/www/html/manager
[Tue Apr 24 05:49:22 2012] [error] [client 220.226.188.32] File does not exist: /var/www/html/user
[Tue Apr 24 06:37:11 2012] [error] [client 218.199.92.61] File does not exist: /var/www/html/myadmin