php error after deploying the investigation process

 When not in use the framework php unavailable, no debugging information provided by the framework, so to follow the entire life cycle request to the debugger,

DETAILED sequentially troubleshoot network error, step a server environment, the code layers of depth, the final positioning point to the occurrence of an error.

 

1 Access deployment server URL, there are mistakes.

firefox browser:

 

Google Chrome:

Description of the machine or the service is not a network connection is established

Command line to troubleshoot the aid ping curl command. Visit this unit Baidu, with other machines to access the service Web site, using a control method to eliminate the influence of factors.

 

2 server

If the 502 Bad Gateway appears.

Description network has been established, and the request has come nginx, but the service was not found or service code is wrong.

Test: can increase in webroot directory test.php print phpinfo (); see if you can access.

 

3

If the service to access the page blank. Error level at the inlet can be opened file all, Code: error_reporting (E_ALL);

After the show the specific issues for further investigation.

 

Usually a key position to develop the habit of logging,

Good logging can greatly enhance the efficiency of error localization.

 

Guess you like

Origin www.cnblogs.com/kala00k/p/11404789.html