技术咨询讨论,我单独测试,一直有报错

lanmp安装过程中的
APACHE+PHP
+--------------------------------------------------------------------+
|                       *** ATTENTION ***                            |
|                                                                    |
| Something is likely to be messed up here, because the configure    |
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages.                         |
|                                                                    |
| If you are unable to fix this, send the file debug.log to the      |
| php-install@lists.php.net mailing list and include appropiate      |
| information about your setup.                                      |
+--------------------------------------------------------------------+
| License:                                                           |
| This software is subject to the PHP License, available in this     |
| distribution in the file LICENSE.  By continuing this installation |
| process, you are bound by the terms of this license agreement.     |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point.                            |
+--------------------------------------------------------------------+

Thank you for using PHP.

Notice: Following unknown configure options were used:

--with-fpm-conf=/www/wdlinux/etc/php-fpm.conf(错误点)

Check './configure --help' for available options

[root@localhost php-5.2.17]# echo $?
0
[root@localhost php-5.2.17]# ./configure --help |grep fpm
  --enable-fpm              FastCGI: If this is enabled, the fastcgi support
  --with-fpm-conf=PATH        Set the path for php-fpm configuration file [PREFIX/etc/php-fpm.conf]
  --with-fpm-log=PATH         Set the path for php-fpm log file [PREFIX/logs/php-fpm.log]
  --with-fpm-pid=PATH         Set the path for php-fpm pid file [PREFIX/logs/php-fpm.pid]

===============================
我的理解是
function php_ins {
 echo
 echo "installing php..."
 cd $IN_SRC
 tar zxvf php-5.2.17.tar.gz > $IN_LOG 2>&1
 NV=""
 [ $SERVER == "nginx" ] && NV="--enable-fastcgi --enable-fpm" && gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1 > $IN_LOG 2>&1
 [ $SERVER == "apache" ] && NV="--with-apxs2=$IN_DIR/apache/bin/apxs"
 cd php-5.2.17/
 make_clean
 ./configure --prefix=$IN_DIR/php-5.2.17 --with-config-file-path=$IN_DIR/etc --with-fpm-conf=$IN_DIR/etc/php-fpm.conf --with-mysql=$IN_DIR/mysql --with-iconv-dir=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp $NV
 [ $? != 0 ] && err_exit "php configure err"
 make
 [ $? != 0 ] && err_exit "php make err"
 make install
 [ $? != 0 ] && err_exit "php make install err"
 ln -sf $IN_DIR/php-5.2.17 $IN_DIR/php
 cp php.ini-dist $IN_DIR/etc/php.ini
 if [[ $SERVER == "nginx" ]];then
  sed -i '/nobody/s#<!--##g' $IN_DIR/etc/php-fpm.conf
  sed -i '/nobody/s#-->##g' $IN_DIR/etc/php-fpm.conf
  sed -i 's/>nobody</>www</' $IN_DIR/etc/php-fpm.conf
 fi
}

改为下面
 

function php_ins {
 echo
 echo "installing php..."
 cd $IN_SRC
 tar zxvf php-5.2.17.tar.gz > $IN_LOG 2>&1
 NV=""
 [ $SERVER == "nginx" ] && NV="--enable-fastcgi --enable-fpm --with-fpm-conf=$IN_DIR/etc/php-fpm.conf" && gzip -cd php-5.2.17-fpm-0.5.14.diff.gz | patch -fd php-5.2.17 -p1 > $IN_LOG 2>&1
 [ $SERVER == "apache" ] && NV="--with-apxs2=$IN_DIR/apache/bin/apxs"
 cd php-5.2.17/
 make_clean
 ./configure --prefix=$IN_DIR/php-5.2.17 --with-config-file-path=$IN_DIR/etc --with-mysql=$IN_DIR/mysql --with-iconv-dir=/usr --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-inline-optimization --with-curl --enable-mbregex --enable-mbstring --with-mcrypt=/usr --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-ftp $NV
 [ $? != 0 ] && err_exit "php configure err"
 make
 [ $? != 0 ] && err_exit "php make err"
 make install
 [ $? != 0 ] && err_exit "php make install err"
 ln -sf $IN_DIR/php-5.2.17 $IN_DIR/php
 cp php.ini-dist $IN_DIR/etc/php.ini
 if [[ $SERVER == "nginx" ]];then
  sed -i '/nobody/s#<!--##g' $IN_DIR/etc/php-fpm.conf
  sed -i '/nobody/s#-->##g' $IN_DIR/etc/php-fpm.conf
  sed -i 's/>nobody</>www</' $IN_DIR/etc/php-fpm.conf
 fi
}

欢迎转载,但请保留此信息
[我的Linux,让Linux更易用] CentOS精简版,集成lamp,lnmp版,wdcp,wdcdn,wddns,一键安装包,集群负载均衡LVS,智能DNS/CDN,性能优化
本文连接:http://www.wdlinux.cn/old/node/629

这样改也可以,不改也可正常安装的

这样改也可以,不改也可正常安装的