Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've posted a question yesterday on stackoverflow here but think this might be server related. I'm connecting using the PHP curl functionality to a server that then generates a PDF file and sends it back, I only get the error when I first execute the script, when executing it again all works perfectly. For more details check the question on stackoverflow.

I'm getting this message

* 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

Now why I'm asking this on serverfault is to find out if there's maybe a setting on the server that needs to be set, it's a VPS running CENTOS 6 with WKHTML2PDF, LAMP and CURL is installed. Any information required to solve this, I can obtain.. I'm running out of ideas.

ERROR LOG AS found in /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
share|improve this question
    
Do you have access to the server generating the PDFs? Could be interesting to check its (web-server) errorlogs. –  pkhamre Apr 24 '12 at 7:12
    
@pkhamre - I've added a error log to the question found in /var/log/httpd/error_log , if there are other logs you need I can obtain them –  Roland Apr 24 '12 at 8:04
    
Server logs looks quite normal. –  pkhamre Apr 24 '12 at 8:20
    
@pkhamre - What's weird is that the script works the second time, but never the first time –  Roland Apr 24 '12 at 8:31
    
First time accessing a certain pdf? First time after server restart? –  pkhamre Apr 24 '12 at 9:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.