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

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 '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 's/>nobody>www' $IN_DIR/etc/php-fpm.conf

fi

}

CentOS精简版,集成lamp,lnmp版,wdcp,wdcdn,wddns,一键安装包,集群负载均衡LVS,智能DNS/CDN,性能优化

本文连接:http://www.wdlinux.cn/old/node/629

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值