我在 error.log 文件中收到很多错误,例如:
[Sat Oct 07 10:18:06.262085 2017] [wsgi:alert] [pid 18183] (2)No such file or directory: mod_wsgi (pid=18183): Unable to change working directory to '/home/iredadmin'.
[Sat Oct 07 10:18:06.263508 2017] [wsgi:alert] [pid 18183] mod_wsgi (pid=18183): Failure to configure the daemon process correctly and process left in unspecified state. Restarting daemon process after delay.
一直这样。。现在,我最近删除了 iredadmin 及其附加文件,但作为使用终端工作的新手,我不太清楚如何解决此错误,我的网站正常运行,但我想在日志中解决此错误。有人可以指导我正确的方向吗?
另外我不完全确定这个错误意味着什么,所以如果有人可以解释它,我将不胜感激。
谢谢。
编辑:
尝试按照乔治的建议禁用 wsgi,但是当我尝试重新启动 apache2 时收到以下消息。
Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.
然后我写了“journalctl | tail”并得到以下内容:
Oct 07 12:29:19 systemd[1]: apache2.service: Control process exited, code=exited status=1
Oct 07 12:29:19 systemd[1]: Failed to start LSB: Apache2 web server.
Oct 07 12:29:19 systemd[1]: apache2.service: Unit entered failed state.
Oct 07 12:29:19 systemd[1]: apache2.service: Failed with result 'exit-code'.
Oct 07 12:29:37 kernel: [UFW BLOCK] IN=eth0 OUT= MAC=hidden SRC=hidden DST=hidden LEN=434 TOS=0x00 PREC=0x00 TTL=51 ID=2843 DF PROTO=UDP SPT=5072 DPT=5060 LEN=414
Oct 07 12:30:01 CRON[19318]: pam_unix(cron:session): session opened for user www-data by (uid=0)
Oct 07 12:30:01 CRON[19319]: (www-data) CMD ([ -x /usr/share/awstats/tools/update.sh ] && /usr/share/awstats/tools/update.sh)
Oct 07 12:30:01 CRON[19318]: pam_unix(cron:session): session closed for user www-data
Oct 07 12:30:07 postfix/smtpd[19323]: connect from 246.red-79-148-239.staticip.rima-tde.net[79.148.239.246]
Oct 07 12:30:07 postfix/smtpd[19323]: disconnect from 246.red-79-148-239.staticip.rima-tde.net[79.148.239.246] helo=1 auth=0/1 quit=1 commands=2/3
我尝试再次启用 wsgi 模块,然后重新启动 apache2,成功了。所以,如果我禁用 wsgi,apache2 似乎无法重新启动。