最后安装
yum install httpd php
现在我用的 就是通过 这种方式装的
php-5.2.11
httpd-2.2.14作者: licess 时间: 2010-12-2 10:06 标题: 回复 1# 的帖子 lnmp的是编译安装的,需要编译安装,参考lnmp脚本中php安装部分的就行了,里面对应的php、php-fpm、Suhosin都换成你要的版本。作者: lovegx999 时间: 2010-12-2 19:30 标题: 回复 2# 的帖子 不敢乱搞
老大能把脚本整理出来吗
那样真是太感谢啦
可以不?作者: licess 时间: 2010-12-3 13:00
tar zxvf php-5.3.3.tar.gz
cd php-5.3.3/
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-fpm-user=www --with-fpm-group=www --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --enable-magic-quotes --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fastcgi --enable-fpm --enable-force-cgi-redirect --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --without-pear --with-gettext --with-mime-magic
make ZEND_EXTRA_LIBS='-liconv'
make install
安装的话基本就这些,php5.3.3与前的差别比较大,还有很多参数配置需要修改,可以找一下这方面的文章看看作者: lovegx999 时间: 2010-12-4 01:27
郁闷 按照你的步骤操作后 无法重启/usr/local/php/sbin/php-fpm restart
只有按照你这个办法返回 5.2.14
重启/usr/local/php/sbin/php-fpm restart
还是依然提示::
[root@localhost memcache-2.2.5]# /usr/local/php/sbin/php-fpm restart
eAccelerator requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact eAccelerator at http://eaccelerator.net for a later version of eAccelerator.
Zend Optimizer requires Zend Engine API version 220060519.
The Zend Engine API version 220090626 which is installed, is newer.
Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Optimizer.
PHP Warning: PHP Startup: memcache: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: pdo_mysql: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
<br />
<b>Warning</b>: Directive 'register_long_arrays' is deprecated in PHP 5.3 and greater in <b>Unknown</b> on line <b>0</b><br />
<br />
<b>Warning</b>: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in <b>Unknown</b> on line <b>0</b><br />
Usage: php-fpm [-n] [-e] [-h] [-i] [-m] [-v] [-c <file>] [-d foo[=bar]] [-y <file>]
-c <path>|<file> Look for php.ini file in this directory
-n No php.ini file will be used
-d foo[=bar] Define INI entry foo with value 'bar'
-e Generate extended information for debugger/profiler
-h This help
-i PHP information
-m Show compiled in modules
-v Version number
-y, --fpm-config <file>
Specify alternative path to FastCGI process manager config file.作者: lovegx999 时间: 2010-12-4 01:27
老大 看看是什么情况啊
郁闷