关注最新技术
技术原创博客

linux下编译安装php7

今天在一台新的腾讯云服务器上安装php7,现在php7的稳定版已经出来了,已经移除了mysql的扩展,可以用Mysqli或者Pdo-mysql来代替。

下面我就对linux下编译安装php7 做一下介绍,我个人的编译参数如下,大家可以对照安装,有问题的可以留言。

./configure --prefix=/opt/lnmp/php7 \
--exec-prefix=/opt/lnmp/php7 \
--bindir=/opt/lnmp/php7/bin \
--sbindir=/opt/lnmp/php7/sbin \
--includedir=/opt/lnmp/php7/include \
--libdir=/opt/lnmp/php7/lib/php \
--mandir=/opt/lnmp/php7/php/man \
--with-config-file-path=/opt/lnmp/php7/etc \
--with-mysql-sock=/tmp/mysql.sock \
--with-mysqli=/opt/lnmp/mysql/bin/mysql_config \
--with-pdo-mysql=/opt/lnmp/mysql \
--with-mcrypt=/usr/include \
--with-mhash \
--with-openssl \
--with-gd \
--with-iconv \
--with-zlib \
--enable-zip \
--enable-inline-optimization \
--disable-debug \
--disable-rpath \
--enable-shared \
--enable-xml \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-mbregex \
--enable-mbstring \
--enable-ftp \
--enable-gd-native-ttf \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--without-pear \
--with-gettext \
--enable-session \
--with-curl \
--with-jpeg-dir \
--with-freetype-dir \
--enable-opcache \
--enable-fpm \
--with-fpm-user=www \
--with-fpm-group=www \
--without-gdbm \
--disable-fileinfo

未经允许,不得转载本站任何文章:微度网络 » linux下编译安装php7

分享到:更多 ()
  1. -with-mysql-sock=/tmp/mysql.sock
    –with-mysqli=/opt/lnmp/mysql/bin/mysql_config
    –with-pdo-mysql=/opt/lnmp/mysql
    这几个选项是什么意思啊?