您的位置:首页 > 编程语言 > PHP开发

升级到 PHP 7.0

2015-12-12 00:00 633 查看
摘要: 官方吹了很多的NB,怎么也得试试

wget http://cl1.php.net/get/php-7.0.0.tar.gz/from/this/mirror tar zxf php-7.0.0.tar.gz
cd php-7.0.0

./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/php \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-pdo-mysql=/usr/local/mysql \
--with-gd \
--with-gettext \
--with-iconv \
--with-zlib \
--with-openssl \
--with-curl \
--with-freetype-dir=/usr/include/freetype2/freetype/ \
--with-bz2 \
--with-jpeg-dir \
--with-png-dir \
--with-mcrypt \
--enable-gd-native-ttf \
--enable-mbstring \
--enable-sockets \
--enable-pcntl \
--enable-xml

make
make install

目前已有 For PHP 7的redis https://github.com/edtechd/phpredis
目前已有 For PHP 7的memcache https://github.com/php-memcached-dev/php-memcached/tree/php7
目前没有 For PHP 7的Phalcon框架

生产环境部署 PHP 7还是要等一等...
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: