小编Sha*_*ane的帖子

PHP-FPM 无法连接到 FastCGI 服务器

错误日志:

[Sat Nov 22 05:24:41 2014] [error] [client xx] (2)No such file or directory: FastCGI: failed to connect to server "/usr/lib/cgi-bin/php5-fcgi": connect() failed 
[Sat Nov 22 05:24:41 2014] [error] [client xx] FastCGI: incomplete headers (0 bytes) received from server "/usr/lib/cgi-bin/php5-fcgi"
Run Code Online (Sandbox Code Playgroud)

嗯,这个文件/usr/lib/cgi-bin/php5-fcgi确实丢失了,cgi-bin文件夹中实际上什么都没有。当我重新启动 apache2 时,它似乎工作正常:

[Sat Nov 22 04:46:29 2014] [notice] FastCGI: process manager initialized (pid 10747)
[Sat Nov 22 04:46:29 2014] [notice] Apache/2.2.22 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_ssl/2.2.22 OpenSSL/1.0.1 configured -- resuming normal operations
Run Code Online (Sandbox Code Playgroud)

/etc/apache2/conf.d/php-fpm.conf

<IfModule mod_fastcgi.c>
    AddHandler php5-fcgi …
Run Code Online (Sandbox Code Playgroud)

mod-fastcgi apache-2.2

8
推荐指数
2
解决办法
4万
查看次数

获取 sh: 1: /usr/sbin/sendmail: 在 apache 中未找到错误

我的 apache2 error.log 中有很多错误sh: 1: /usr/sbin/sendmail: not found,问题是,我不记得我的任何站点/应用程序尝试发送邮件或其他什么,并且我已经在我的 WordPress 博客上安装了 WP Mail SMTP,它工作得很好,所以我的问题是,如何找出哪个应用程序或网站一直试图执行此操作?

编辑:我确实在以下位置找到了有趣的行/var/log/mail.log

Jun 22 07:27:31 sm-mta[29654]: r5H8U4O1014238: to=<you@yourdomain.com>, ctladdr=<www-data@xxxx@xxxx.net> (33/33), delay=4+22:57:27, xdelay=00:00:01, mailer=esmtp, pri=63391559, relay=mx00.1and1.com. [74.208.5.3], dsn=4.0.0, stat=Deferred: 421 invalid sender domain

我已经按照说明完全卸载了服务器上的所有邮件应用程序,如下所示:

apt-get remove sendmail sendmail-bin postfix
apt-get purge postfix exim4 sendmail sendmail-bin
Run Code Online (Sandbox Code Playgroud)

那些恼人的台词仍然时不时地出现,我现在该怎么办?

谢谢,谢恩

sendmail wordpress apache-2.2

7
推荐指数
1
解决办法
2万
查看次数

标签 统计

apache-2.2 ×2

mod-fastcgi ×1

sendmail ×1

wordpress ×1