Home >php教程 >php手册 >php-fpm 启动报please specify user and group other than root, pool ‘default

php-fpm 启动报please specify user and group other than root, pool ‘default

WBOY
WBOYOriginal
2016-05-25 16:52:131788browse

安装PHP ,配置fpm 成功后启动发现报错:Starting php_fpm Aug 03 06:51:54.269165 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’

解决办法,修改php-fpm.conf:

<!--  <value name="user">nobody</value>   --> 
   Unix group of processes 
<!--  <value name="group">nobody</value>   -->

修改成 nginx 指定的用户与组

<value name="user">www</value> 
Unix group of processes 
<value name="group">www</value>

或者我们也可以这样配置,代码如下:改成:nobody,启用nobody用户选项,保存退出,然后再重新启动php-fpm,修改启动代码如下:

[root@localhost conf]# php-fpm start 
Starting php_fpm  done


本文链接:

收藏随意^^请保留教程地址.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn