标签:ipv6 bzip2 .net src nat str php zlib configure
yum install -y epel-release
yum install -y gcc libmcrypt-devel libxml2-devel openssl openssl-devel bzip2 bzip2-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel
cd /usr/local/src
wget http://cn2.php.net/distributions/php-5.4.37.tar.gz
tar zxvf php-5.4.37.tar.gz
cd php-5.4.37
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --with-fpm-user=php-fpm --with-fpm-group=php-fpm --with-mysql=/usr/local/mysql --with-mysql-sock=/tmp/mysql.sock --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --disable-ipv6
make
make install
cp php.ini-production /usr/local/php/etc/php.ini
cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm
cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
chmod 755 /etc/init.d/php-fpm
useradd -s /sbin/nologin php-fpm
chkconfig --add php-fpm
chkconfig php-fpm on
service php-fpm start
ps aux | grep php-fpm
标签:ipv6 bzip2 .net src nat str php zlib configure
原文地址:http://www.cnblogs.com/pzk7788/p/7043466.html