How to get more information about error 500 - internal server error?

前端 未结 7 2212
粉色の甜心
粉色の甜心 2021-01-05 23:00

I use $ajax requests in many parts of my PHP website everything was working perfectly until few days ago all my $ajax requests start giving e

7条回答
  •  时光取名叫无心
    2021-01-05 23:17

    If it's not happening every time the script runs, then my guess is:

    1. Running out of memory. (Unlikely looking at your code)
    2. Reaching maximum connections on the server where your file is hosted. (Your host should have some tool that you can use to get stats)
    3. Your PHP script is deployed on more than one servers, running behind a load balancer, and one of the servers has a corrupt version of your PHP file, or a corrupt PHP installation, or a faulty web-server(or web-server config). Whenever client request ends up on that corrupt server, you get the 500.

提交回复
热议问题