0
我有我自己的Debian服务器,安装了LAMP,并且PHP web应用程序基于CodeIgniter并且配置为使用sendmail发送邮件。 直到今天,一切都很好,系统很容易发送邮件。 (最后的测试是昨晚)apche mod_fcgid,codeigniter和sendmail - 尝试发送邮件时发生超时
但是从今天晚上我的服务器无法发送电子邮件和我得到的下一个Apache的错误:
mod_fcgid: read data timeout in 31 seconds
我不明白为什么这个错误突然出现,我有查看了dpkg
日志,看看是否添加了相关的软件包,但没有任何内容。
`# cat /var/log/dpkg.log`
2014-11-03 07:59:18 startup archives unpack
2014-11-03 07:59:18 upgrade wget:amd64 1.13.4-3+deb7u1 1.13.4-3+deb7u2
2014-11-03 07:59:18 status half-configured wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status unpacked wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status half-installed wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status triggers-pending install-info:amd64 4.13a.dfsg.1-10
2014-11-03 07:59:18 status half-installed wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status triggers-pending man-db:amd64 2.6.2-1
2014-11-03 07:59:18 status half-installed wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status half-installed wget:amd64 1.13.4-3+deb7u1
2014-11-03 07:59:18 status unpacked wget:amd64 1.13.4-3+deb7u2
2014-11-03 07:59:18 status unpacked wget:amd64 1.13.4-3+deb7u2
2014-11-03 07:59:18 trigproc install-info:amd64 4.13a.dfsg.1-10 4.13a.dfsg.1-10
2014-11-03 07:59:18 status half-configured install-info:amd64 4.13a.dfsg.1-10
2014-11-03 07:59:18 status installed install-info:amd64 4.13a.dfsg.1-10
2014-11-03 07:59:19 trigproc man-db:amd64 2.6.2-1 2.6.2-1
2014-11-03 07:59:19 status half-configured man-db:amd64 2.6.2-1
2014-11-03 07:59:19 status installed man-db:amd64 2.6.2-1
2014-11-03 07:59:19 startup packages configure
2014-11-03 07:59:19 configure wget:amd64 1.13.4-3+deb7u2 <none>
2014-11-03 07:59:19 status unpacked wget:amd64 1.13.4-3+deb7u2
2014-11-03 07:59:19 status unpacked wget:amd64 1.13.4-3+deb7u2
2014-11-03 07:59:19 status half-configured wget:amd64 1.13.4-3+deb7u2
2014-11-03 07:59:19 status installed wget:amd64 1.13.4-3+deb7u2
当我从命令行使用sendmail时,它工作的很好。
现在,我可以通过添加SMTP服务器来修复它,但是我想了解发生了什么以及为什么我的Apache + PHP在连接到sendmail时遇到问题。
所以这是我的问题:
1.这种行为的原因是什么?
2.我如何追踪这个原因,并在将来防止它?