记一次http500错误的解决办法
报错信息为:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, xxx@xxx.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
去网上搜:
去FTP改htdocs权限, 一顿操作后没有任何改变
修改.htaccess文件, 不起作用
服务器在阿里, 找了阿里的技术, 阿里检查也没有问题
后来下载了错误报告, 终于发现是内存溢出了, 然后就找和本页面相关的文件, 结果发现
去数据库查数据, 没有给where条件, 那肯定把所有数据都查出来了啊, 难怪内存溢出, 修改之后, 终于解决.