php环境安装

[PHP]
yum install libxml2-devel
yum install gd-devel
yum install libmcrypt-devel
yum install libcurl-devel
yum install openssl-devel
yum install php-soap -y


./configure --prefix=/usr/local/php --enable-cli --enable-shared --with-libxml-dir --with-gd --with-openssl --enable-mbstring --with-mcrypt --with-mysqli --with-mysql --enable-opcache --enable-mysqlnd --enable-zip --with-zlib-dir --with-pdo-mysql --with-jpeg-dir --with-freetype-dir --with-curl --without-pdo-sqlite --without-sqlite3 --enable-fpm
make & make install

[Nginx]
./configure --prefix=/usr/local/nginx --without-http_memcached_module --user=nginx --group=nginx --with-http_stub_status_module --with-openssl=/usr/ --with-pcre=/usr/local/src/pcre-8.35
make & make install

[Yaf]
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config
make && make install


//最好放在extension的位置
extension=yaf.so
//在php.ini文件末尾放置
[yaf]
yaf.environ = product
yaf.library = NULL
yaf.cache_config = 0
yaf.name_suffix = 1
yaf.name_separator = ""
yaf.forward_limit = 5
yaf.use_namespace = 0
yaf.use_spl_autoload = 0

原文地址:https://www.cnblogs.com/assion/p/8001231.html