Home >Operation and Maintenance >CentOS >Error when installing php on centos system
Problem:
CentOS installation php error report is as follows:
[root@ZabbixServer php-7.0.13]# /usr/local/php-5.5.0/sbin/php-fpm [19-Nov-2016 14:01:53] WARNING: Nothing matches the include pattern '/usr/local/php-5.5.0/etc/php-fpm.d/*.conf' from /usr/local/php-5.5.0/etc/php-fpm.conf at line 125. [19-Nov-2016 14:01:53] ERROR: No pool defined. at least one pool section must be specified in config file [19-Nov-2016 14:01:53] ERROR: failed to post process the configuration [19-Nov-2016 14:01:53] ERROR: FPM initialization failed
Cause:
Due to the default in the php-fpm.d directory There is no conf file, only www.conf.default file, so this error is caused.
(Recommended tutorial: centos usage tutorial)
Solution:
Rename the default www.conf.default file to www.conf It can be solved.
The specific method is as follows:
[root@ZabbixServer tmp]# cd /usr/local/php-5.5.0/etc/php-fpm.d/ [root@ZabbixServer php-fpm.d]# ll 总用量 20 -rw-r--r--. 1 root root 18536 11月 19 13:59 www.conf.default [root@ZabbixServer php-fpm.d]# cp www.conf.default www.conf [root@ZabbixServer php-fpm.d]# /usr/local/php-5.5.0/sbin/php-fpm
Recommended related video tutorials: linux video tutorial
The above is the detailed content of Error when installing php on centos system. For more information, please follow other related articles on the PHP Chinese website!