centos 编译php

安装所有依赖

yum install -y re2c bison libxml2-devel mhash mcrypt libmcrypt libmcrypt-devel libcurl-devel openssl-devel libpng-devel libjpeg-devel freetype-devel

编译参数

./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-fpm --enable-mbstring --enable-zip --enable-soap --enable-sockets --enable-bcmath --enable-inline-optimization --enable-mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-mysql-sock --with-zlib --with-mcrypt --with-libxml-dir --with-curl --with-gd --with-openssl --with-mhash --with-xmlrpc --with-freetype-dir --with-fpm-user=nginx --with-fpm-group=nginx --with-libdir=lib64 --without-pear

你可能感兴趣的:(centos 编译php)