特定网页启动偶尔会导致500内部错误

发布于 2024-09-16 21:58:34 字数 210 浏览 3 评论 0原文

我今天遇到一个问题,我网站上的特定页面有时会导致 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

做个ˇ局外人 2024-09-23 21:58:34

我在此处遇到了同样的问题。最终不得不将网站移至较新的服务器。未找到解决方案。

I had the same issue Here. Ended up having to move the site to a newer server. No resolution was found.

花伊自在美 2024-09-23 21:58:34

没有错误日志,

  • 这很可能是内存限制

  • 执行时间

检查 php 设置并更改它们。

由于数据库中的数据值正在增长,因此一段时间后出现此类问题是正常的。您必须重构“页面”,特别是您的查询。

without error logs its quite a guessing...

  • it could be memory-limit

or

  • execution time

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文