启动PHP报错ERROR: [pool www] cannot get uid for user '@php_fpm_user@'

当编译并安装好php后,用以下命令启动

sudo ./sbin/php-fpm

然后报出这样的错误:

vagrant@precise32 ~/php5 % sudo ./sbin/php-fpm 
[02-Mar-2014 09:11:26] ERROR: [pool www] cannot get uid for user ‘@php_fpm_user@‘
[02-Mar-2014 09:11:26] ERROR: FPM initialization failed

修改php的配制文件php-fpm.conf (在安装目录的etc子目录下)

vagrant@precise32 ~/php5/etc % sudo vi php-fpm.conf

将@php_fpm_user@改为当前系统的用户名,如下图,然后重新启动就ok了

启动PHP报错ERROR: [pool www] cannot get uid for user '@php_fpm_user@'

启动PHP报错ERROR: [pool www] cannot get uid for user '@php_fpm_user@',布布扣,bubuko.com

启动PHP报错ERROR: [pool www] cannot get uid for user '@php_fpm_user@'

上一篇:微软讲座视频: 微软下一代vNext平台:ASP.NET vNext与MVC6,WebAPI 3.0 新特性


下一篇:gSoap 创建Web Service