关于 重启php5.6 报错value is NULL for a ZEND_INI_PARSER_ENTRY

 环境:

  lnmp(ubuntu 16.0.4 ;php5.6)

目的:

  断电重启虚拟机后启动php5.6服务

问题:

  启动php服务报错,报错命令:

  ➜  ~ sudo service php5.6-fpm start

  报错:

Job for php5.6-fpm.service failed because the control process exited with error code. See "systemctl status php5.6-fpm.service" and "journalctl -xe" for details.

  根据提示执行命令:

  ➜  ~ systemctl status php5.6-fpm.service

  报错:

 1 ● php5.6-fpm.service - The PHP 5.6 FastCGI Process Manager
 2    Loaded: loaded (/lib/systemd/system/php5.6-fpm.service; enabled; vendor preset: enabled)
 3    Active: failed (Result: exit-code) since Tue 2018-09-11 04:12:17 PDT; 20s ago
 4      Docs: man:php-fpm5.6(8)
 5   Process: 8843 ExecStart=/usr/sbin/php-fpm5.6 --nodaemonize --fpm-config /etc/php/5.6/fpm/php-fpm.conf (code=exited, status=78)
 6  Main PID: 8843 (code=exited, status=78) 7 8 Sep 11 04:12:17 bogon systemd[1]: Starting The PHP 5.6 FastCGI Process Manager... 9 Sep 11 04:12:17 bogon php-fpm5.6[8843]: [11-Sep-2018 04:12:17] ERROR: [/etc/php/5.6/fpm/php-fpm.conf:529] value is NULL for a ZEND_INI_PARSER_ENTRY 10 Sep 11 04:12:17 bogon php-fpm5.6[8843]: [11-Sep-2018 04:12:17] ERROR: failed to load configuration file '/etc/php/5.6/fpm/php-fpm.conf' 11 Sep 11 04:12:17 bogon php-fpm5.6[8843]: [11-Sep-2018 04:12:17] ERROR: FPM initialization failed 12 Sep 11 04:12:17 bogon systemd[1]: php5.6-fpm.service: Main process exited, code=exited, status=78/n/a 13 Sep 11 04:12:17 bogon systemd[1]: Failed to start The PHP 5.6 FastCGI Process Manager. 14 Sep 11 04:12:17 bogon systemd[1]: php5.6-fpm.service: Unit entered failed state. 15 Sep 11 04:12:17 bogon systemd[1]: php5.6-fpm.service: Failed with result 'exit-code'.

 

  黄色高亮为错误原因及错误位置锁定,原因是php-fpm.conf中有错误,根据提示行数去修改

  1、若没有对应行,则是因为文件内有包含其他文件,为方便锁定问题把include对应行屏蔽掉,在执行命令,看报错锁定为哪一行。

  2、对应行不知道是什么问题,请百度或者直接屏蔽掉

 

总结:

  该问题锁定很明确,请认真排查。

 

参考文章:

  https://blog.csdn.net/LJFPHP/article/details/79896461

  

 

转载于:https://www.cnblogs.com/estadewey/p/9635658.html

你可能感兴趣的:(关于 重启php5.6 报错value is NULL for a ZEND_INI_PARSER_ENTRY)