search

Home  >  Q&A  >  body text

web - nginx serves, the front-end text data exceeds 300 words, cannot be saved, and the server reports a 500 error!

nginx is doing services. The front-end text data exceeds 300 words and cannot be saved. The server reports a 500 error. Data smaller than 300 can be saved normally. Is there something wrong with the configuration? Please ask all experienced drivers

nginx configuration has been set

proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host            $http_host;
proxy_buffer_size 1024k;
proxy_buffers 32 1024k;
proxy_busy_buffers_size 1024k;
黄舟黄舟2753 days ago507

reply all(6)I'll reply

  • 为情所困

    为情所困2017-05-16 17:14:01

    2016/11/29 17:32:41 [crit] 25902#0: *11761 open() "/var/lib/nginx/tmp/client_body/0000000655" failed (13: Permission denied), client: 1.86.27.55, server: test.yitushijie.com, request: "POST /article/add HTTP/1.1", host: "test.yitushijie.com", referrer: "http://test.yitushijie.com/article/add"

    According to this log
    The problem is solved
    Go to the /var/lib directory to check the permissions of the nginx directory:
    Execute the command:

    chmod -R 775 nginx

    Problem solved.
    Thank you everyone

    reply
    0
  • 怪我咯

    怪我咯2017-05-16 17:14:01

    500 is the code error. First take a look at the code to see if there is an error in the code processing the request data. Or post the 500 error message.

    reply
    0
  • 为情所困

    为情所困2017-05-16 17:14:01

    Please take a look at the error log, otherwise it will be difficult to determine. If it is determined that it is a word count problem, take a look at what type of text your database uses to save text. It may be that the length is not enough to save it.

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-16 17:14:01

    You can’t memorize nginx. Please post the code and see. 500 is usually a program error.

    reply
    0
  • 高洛峰

    高洛峰2017-05-16 17:14:01

    It should be restricted by your php-fpm configuration. It is not nginx configuration.

    reply
    0
  • PHP中文网

    PHP中文网2017-05-16 17:14:01

    Check mysql restrictions

    reply
    0
  • Cancelreply