特定网页启动偶尔会导致500内部错误
我今天遇到一个问题,我网站上的特定页面有时会导致 500 内部错误。由于对大型数据集的一些数据库查询,该页面通常需要相当长的时间才能加载,但直到今天 apache 500 内部错误才开始发生。显然,我会尝试尽可能地优化数据库查询以提高页面加载速度,但是有人知道为什么在几个月的良好状态后可能会开始发生这种情况吗?我不知道任何服务器范围的配置更改。是否可能是脚本执行时间问题,需要在 php.ini 中修改?
I've come across an issue today where a specific page on my site is sometimes causing a 500 internal error. The page normally can take fairly long to load due to some database queries on large datasets, but only today has the apache 500 internal error started to happen. Obviously I will try to optimise the db queries as much as possible to improve page loading speed, but does anyone have an idea why this may have started to happen after having been fine for a couple of months? I'm not aware of any server wide configuration changes. Is it possibly a script execution time issue which needs to be modified in php.ini?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在此处遇到了同样的问题。最终不得不将网站移至较新的服务器。未找到解决方案。
I had the same issue Here. Ended up having to move the site to a newer server. No resolution was found.
查看 http://bugs.php.net/bug.php?id=28929< /a>
Check out http://bugs.php.net/bug.php?id=28929
没有错误日志,
或
检查 php 设置并更改它们。
由于数据库中的数据值正在增长,因此一段时间后出现此类问题是正常的。您必须重构“页面”,特别是您的查询。
without error logs its quite a guessing...
or
check the php settings and change them.
since the data-value in your db is growing its normal that such problem shows up after a while. you'll have to refactoring the "page" specially your queries.