码迷,mamicode.com
首页 > Web开发 > 详细

安装 PHP

时间:2017-06-18 10:45:27      阅读:138      评论:0      收藏:0      [点我收藏+]

标签: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

 

 

 

 

    

安装 PHP

标签:ipv6   bzip2   .net   src   nat   str   php   zlib   configure   

原文地址:http://www.cnblogs.com/pzk7788/p/7043466.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!