php报错Following unknown configure options were used:–enable-fpm



Php安装报错
1)Thank you for using PHP.Notice: Following unknown configure options were used:–enable-fpm

这是因为没有打补丁
tar zxvf php-5.2.14.tar.gz
gzip -cd php-5.2.14-fpm-0.5.14.diff.gz | patch -d php-5.2.14 -p1
如果没有打补丁的话,那么安装目录下少sbin目录

2)configure: error: Cannot find MySQL header files under /usr/local/lnmp/mysql.
Note that the MySQL client library is not bundled anymore!
这是因为没有安装mysql

Php启动报错
1、Starting php_fpm eAccelerator: Could not allocate 67108864 bytes, the maximum size the kernel allows is 33554432 bytes. Lower the amount of memory request or increase the limit in /proc/sys/kernel/shmmax. PHP Warning: [eAccelerator] Can not create shared memory area in Unknown on line 0 PHP Fatal error: Unable to start eAccelerator module in Unknown on line 0 failed
这是因为php.ini中设置eaccelerator.shm_size=”64″,解释:eaccelerator可使用的共享内存大小(单位为MB),即64M
在Linux下,单个进程的最大内存使用量受/proc/sys/kernel/shmmax中设置的数字限制(单位为字节) /proc/sys/kernel/shmmax = 33554432 (32M)临时更改该值:
可以给eaccelerator.shm_size=”32″这样也可以
echo 128000000 > /proc/sys/kernel/shmmax(在vps下这个不能修改,所以只能使用下面的方法)或者vi /etc/sysctl.confkernel.shmmax = 128000000syscatl -p
2、Starting php_fpm Oct 18 00:28:59.241793 [ERROR] fpm_unix_conf_wp(), line 124: please specify user and group other than root, pool ‘default’
…………………………….. failed
这是因为
Vi /usr/local/lnmp/php/etc/php-fpm.conf
Unix user of processes
<value name=”user”></value>
Unix group of processes
<value name=”group”></value>
用户和组没有写正确!写nginx的启动用户如
Unix user of processes
<value name=”user”>www</value>

Unix group of processes
<value name=”group”>www</value>