PHP 500 POST error occurs when receiving data large (large or large string array)

Today server suddenly not receiving data, take the curl wrote a test script, found that only a small string can send and receive successfully, string 300K to die, server directly reported to the '500 Internal Server Error.
Server is centos6, nginx, php environment
to start debugging, open the php error log, and found no error message, check the configuration of the post under php, worthy kind of high there is no problem.
Keep looking down the cause, see the nginx error log, and then the eggs, I did not see any error messages, reducing the level of error for nginx warn, here, the following error message appears:

2016/04/19 15:57:53 [crit] 23931#0: *143499 open() "/var/lib/nginx/tmp/client_body/0000000114" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:57:54 [crit] 23931#0: *143512 open() "/var/lib/nginx/tmp/client_body/0000000115" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:57:54 [crit] 23931#0: *143515 open() "/var/lib/nginx/tmp/client_body/0000000116" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:57:54 [crit] 23931#0: *143518 open() "/var/lib/nginx/tmp/client_body/0000000117" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:57:54 [crit] 23931#0: *143521 open() "/var/lib/nginx/tmp/client_body/0000000118" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:57:55 [crit] 23931#0: *143524 open() "/var/lib/nginx/tmp/client_body/0000000119" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"
2016/04/19 15:58:02 [crit] 23932#0: *143644 open() "/var/lib/nginx/tmp/client_body/0000000120" failed (13: Permission denied), client: 11.11.11.60, server: server4.dongdong.com, request: "POST /test1.php HTTP/1.1", host: "server4.dongdong.com"

    1
    2
    3
    4
    5
    6
    7

Depending on the error information derived, nginx and other documents of the buffer directory without written permission.

chmod -R 775 /var/lib/nginx

    1

problem solved! ! ! !
 

Guess you like

Origin blog.csdn.net/zdw19861127/article/details/90314984