记一次PHP7的编译安装过程
由于新项目用PHP7,但原来的机子里面用的是php5.6又不想删掉。为了二全之策只能编译安装了
编译安装就是折腾啊。
总之想好要的那些个功能扩展啥东西写上去。然后报啥错就baidu、google(得FQ哈) 缺啥呢就补啥
好了,附上我所使用到的编译参数,留个纪念:
./configure --prefix=/data/vagrant/svr/php7 \ --with-mysqli=mysqlnd \ --with-pdo-mysql=mysqlnd \ --enable-mysqlnd --enable-fpm \ --enable-pdo \ --enable-libxml \ --enable-mbstring \ --enable-mbregex \ --without-pear \ --without-cdb \ --without-sqlite3 \ --without-pdo-sqlite \ --without-fpm-acl \ --without-litespeed \ --enable-pcntl \ --enable-ftp \ --enable-soap \ --enable-bcmath \ -enable-debug \ --enable-inline-optimization \ --with-mcrypt=/usr \ --with-iconv-dir=/usr \ --with-freetype-dir=/usr \ --with-openssl-dir=/usr \ --with-openssl=/usr \ --with-curl=/usr \ --with-png-dir=/usr \ --with-xpm-dir=/usr/ \ --with-libxml-dir=/usr \ --with-gd \ --with-jpeg-dir=/usr \ --enable-phpdbg \ #因为是开发机,所以开了 --enable-phpdbg-debug #因为是开发机,所以开了
然后装要必要的
redis, memcached, xdebug
结束。