捕捉到SIGTERM错误PHP FAST-CGI APACHE Ubuntu14.4


caught SIGTERM error PHP FAST-CGI APACHE Ubuntu14.4

我按照下面的教程安装了PHP 5.2.17

http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204

apt-get安装PHP5.5和apache2.4.7

PHPINFO报告说,设置主机的php版本仍然是5.5.9

当我重新启动apache2服务时,我在error.log中得到以下信息。

[Thu Mar 19 14:18:53.648697 2015] [mpm_prefork:notice] [pid 23518] AH00169: caught SIGTERM, shutting down
[Thu Mar 19 14:18:54.741836 2015] [:notice] [pid 5543] FastCGI: process manager initialized (pid 5543)
[Thu Mar 19 14:18:54.754243 2015] [mpm_prefork:notice] [pid 5541] AH00163: Apache/2.4.7 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 PHP/5.5.9-1ubuntu4.6 configured -- resuming normal operations
[Thu Mar 19 14:18:54.754317 2015] [core:notice] [pid 5541] AH00094: Command line: '/usr/sbin/apache2'

删除php5.5解决了问题。

问题可能是两个PHP版本之间的冲突,使用相同的fastcgi实现。