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

PHP 5.6编译安装

时间:2017-07-21 18:58:43      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:mysq   yum   mysqli   conf   user   evel   iconv   配置   -shared   

yum install openssl openssl-devel libxml2-deve libxml2 bzip2 bzip2-devel curl-devel php-mcrypt libmcrypt
libmcrypt-devel readline-devel

wget http://mirrors.sohu.com/php/php-5.6.31.tar.gz
tar xzvf php-5.6.31.tar.gz
cd php-5.6.31.tar.gz

1. 配置编译选项

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-inline-optimization --disable-debug --disable-rpath
--enable-shared --enable-opcache --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-mysql=mysqlnd --with-mysqli=mysqlnd
--with-pdo-mysql=mysqlnd --with-gettext --enable-mbstring --with-iconv --with-mcrypt --with-mhash --with-openssl --enable-bcmath
--enable-soap --with-libxml-dir --enable-pcntl --enable-shmop --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-sockets
--with-curl --with-zlib --enable-zip --with-bz2 --with-readline

2. 编译PHP

make

3. 安装PHP

make install

PHP 5.6编译安装

标签:mysq   yum   mysqli   conf   user   evel   iconv   配置   -shared   

原文地址:http://www.cnblogs.com/Jack1023/p/7219035.html

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