[英]Debugging 502 Server Error on Debian 7 with Apache PHP
I have set up a web server on Google Compute Engine. 我已经在Google Compute Engine上设置了网络服务器。
I have installed Apache, PHP on it. 我已经安装了Apache,PHP。 Sometimes, when i run a file it gives 502 Server Error.
有时,当我运行文件时,它会显示502服务器错误。
When i refresh the same page, the scripts runs fine. 当我刷新同一页面时,脚本运行良好。
The error is not constant on a particular page. 该错误在特定页面上不是恒定的。 It just appears on any page and does not appear again when i refresh the same page.
它只会出现在任何页面上,而当我刷新同一页面时不会再次出现。
Can anyone please help me which file to look for to check what is causing the error. 任何人都可以帮助我寻找哪个文件来检查导致错误的原因。
I have installed Joomla 3 on the server. 我已经在服务器上安装了Joomla 3。
You could start looking into /var/log/apache2
(if your is the default configuration) for the apache logs. 您可以开始查看
/var/log/apache2
(如果您是默认配置)来查找apache日志。 More specifically on /var/log/apache2/error.log
for the latest errors logs. 更具体地说,在
/var/log/apache2/error.log
获取最新的错误日志。 Perhaps the server is crashing and restarting and then you get this message until it is restarted. 可能服务器崩溃并重新启动,然后您收到此消息,直到重新启动为止。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.