我昨天在这里发布了一个关于stackoverflow的问题,但认为这可能与服务器有关。 我使用PHPcurlfunction连接到一个服务器,然后生成一个PDF文件并将其发回,我只在第一次执行脚本时得到错误,再次执行时完全正常。 有关更多信息,请查看stackoverflow上的问题。
我收到这个消息
* About to connect() to 196.41.139.168 port 80 (#0) * Trying 196.xxx.. * connected * Connected to 196.xxx (196.xxx) port 80 (#0) > POST /serve/?r=pdf/generatePdf HTTP/1.1 Host: 196.xxx 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中find了ERROR LOG AS
[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