Home  >  Q&A  >  body text

What happens when the server reports a 500 error?

6HTTP500: Server Error - The server encountered an unexpected condition that prevented it from completing the request.
(XHR)POST - http://www.tp5.com/addmin/account/dologin.html

whxnwhxn1791 days ago3999

reply all(9)I'll reply

  • 想无

    想无2021-09-03 18:07:49

    HTTP500: Generally caused by server script errors (syntax errors, sql errors, etc.), you can use the debug function of the programming language itself to capture this exception, such as php, you can turn on error_reporting, or use it in the executing program Try catche to capture or use register_shutdown_function error_get_last to capture. I use Xiaoniao Cloud Server, and the performance is pretty good.

    reply
    0
  • cloudmam

    cloudmam2020-06-23 15:54:29

    The recommended server security protection software is Cloud Helper (https://www.cloudx.cn/?utm_source=wu-p), which includes system protection, network connection management and control, port protection and IP black and white lists. With this function, the protection of the server will be more comprehensive. At the same time, it can perform 24-hour uninterrupted basic monitoring of the server from the four aspects of CPU, memory, disk, and network, and can independently set alarm rules to generate alarms immediately when the status is abnormal, helping users quickly locate and solve problems, free of charge You can download it directly from the official website and use it. I hope it can help you!

    reply
    0
  • Belief

    Belief2019-12-23 09:45:44

    This is also the case for me, and I haven’t found the reason yet

    Can you see your error details?

    reply
    0
  • whxn

    Please check if there is any problem with the data received by your background php or if there is any error in your ajax submission. You can not write according to the teacher's writing method. The 500 error reported is an error when the back-end code accepts the data and returns it.

    whxn · 2019-12-23 17:51:46
    Belief

    I'm a newbie, and I don't know how to do it any other way.

    Belief · 2019-12-24 10:33:51
    Belief

    I just want to learn more,

    Belief · 2019-12-24 10:34:41
  • ringa_lee

    ringa_lee2019-12-21 19:58:59

    Check in the network, there are specific reasons for errors

    reply
    0
  • whxn

    Found it. The backend program was written incorrectly. Thank you.

    whxn · 2019-12-21 19:59:35
    Alone

    Can you send me the specific solution code?

    Alone · 2020-01-19 19:00:44
  • Cancelreply