我有一台运行PHP的Apache Ubuntu服务器。 我的网站突然出错:
404 Not Found: The requested URL / was not found on this server
我试过了:
sudo service apache2 status
结果:
Apache2 is running (pid 1546)
所以我试过了:
cat /proc/1546/status
结果:
State: S(sleeping)
Apache error.log文件:
[Fri Jul 24 05:22:46 2015] [error] [client 155.124.123.161] File does not exist: /etc/apache2/htdocs
我的问题是,这可能是我的Apache服务器无法正常运行导致我发现Not Found错误的原因吗? Apache的睡眠状态是一个问题,我该怎么办呢?我的网站代码位于路径/ var / www / mywebapplication中。它工作了很长时间但突然间出错了。
非常感谢。