ERROR: No pool defined. at least one pool section must be specified in config file
root@ubuntu:/opt/php7# /opt/php7/sbin/php-fpm [22-Sep-2015 14:29:00] WARNING: Nothing matches the include pattern '/opt/php7/etc/php-fpm.d/*.conf' from /opt/php7/etc/php-fpm.conf at line 125. [22-Sep-2015 14:29:00] ERROR: No pool defined. at least one pool section must be specified in config file [22-Sep-2015 14:29:00] ERROR: failed to post process the configuration [22-Sep-2015 14:29:00] ERROR: FPM initialization failed
大概意思就是说找不到 opt/php7/etc/php-fpm.d/目录下的配置文件。 进入里面的目录,会有一个www.conf.default文件。执行下面命名复制一份
root@ubuntu:/opt/php7/etc/php-fpm.d/# cp www.conf
复制好之后,编辑该文件
root@ubuntu:/opt/php7/etc/php-fpm.d/# nano www.conf
定位到里面文件的 user = nobody 和 group = nobody ,调整为 www-data。这一步和5版编译安装一样。最后启动PHP-FPM
root@ubuntu:~# /opt/php7/sbin/php-fpm root@ubuntu:~#
转载请注明原处