1下载源码
http://cn.php.net/get/php-5.3.4.tar.gz/from/cn2.php.net/mirror
2.安装
<pre>
前面配置可看http://www.uusnn.com.cn/?p=148
和老的没有区别
下面开始安装5.3.4
tar -zxvf php-5.3.4.tar.gz
cd php-5.3.4
./configure -prefix=/usr/local/php -with-configure-file-path=/usr/local/php/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --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 --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
make ZEND_EXTRA_LIBS='-liconv'
make install
//安装个开发环境试试
cp php.ini-development /usr/local/webserver/php/etc/php.ini
cd ../
启动/usr/local/php/sbin/php-fpm 就可以了
</pre>
php 5.3.3以后 php-fpm也放到了php内核里了,进程是一个主进程,若干个子进程,主进程可以根据服务压力进行合理的调用子进程
具体的配置在/usr/local/php/etc/php-fpm.conf中
< 转载请写明出处 www.uusnn.com.cn>
http://cn.php.net/get/php-5.3.4.tar.gz/from/cn2.php.net/mirror
2.安装
<pre>
前面配置可看http://www.uusnn.com.cn/?p=148
和老的没有区别
下面开始安装5.3.4
tar -zxvf php-5.3.4.tar.gz
cd php-5.3.4
./configure -prefix=/usr/local/php -with-configure-file-path=/usr/local/php/etc --with-iconv-dir=/usr/local --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-discard-path --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 --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --with-xmlrpc --enable-zip --enable-soap
make ZEND_EXTRA_LIBS='-liconv'
make install
//安装个开发环境试试
cp php.ini-development /usr/local/webserver/php/etc/php.ini
cd ../
启动/usr/local/php/sbin/php-fpm 就可以了
</pre>
php 5.3.3以后 php-fpm也放到了php内核里了,进程是一个主进程,若干个子进程,主进程可以根据服务压力进行合理的调用子进程
具体的配置在/usr/local/php/etc/php-fpm.conf中
< 转载请写明出处 www.uusnn.com.cn>