nginx与PHP配置

一、安装依赖包yum -y install? libxml2? libxml2-devel? openssl? openssl-devel? curl? curl-devel libjpeg? libjpeg-devel? libpng? libpng-devel freetype? pcre pcre-devel? libxslt? libxslt-devel? bzip2?? ...

一、安装依赖包

yum -y install? libxml2? libxml2-devel? openssl? openssl-devel? curl? curl-devel libjpeg? libjpeg-devel? libpng? libpng-devel freetype? pcre pcre-devel? libxslt? libxslt-devel? bzip2?? bzip2-devel ? 二、安装php ?  1.下载php7.0     wget??http://php.net/get/php-7.0.2.tar.gz/from/a/mirror   解压安装 #?tar zxvf?php-7.0.2.tar.gz #?cd php-7.0.2 首先查看安装帮助 #?./configure?? --help #?./configure --prefix=/usr/local/php \
?--with-curl \
?--with-freetype-dir \
?--with-gd \
?--with-gettext \
?--with-iconv-dir \
?--with-kerberos \
?--with-libdir=lib64 \
?--with-libxml-dir \
?--with-mysqli \
?--with-openssl \
?--with-pcre-regex \
?--with-pdo-mysql \
?--with-pdo-sqlite \
?--with-pear \
?--with-png-dir \
?--with-xmlrpc \
?--with-xsl \
?--with-zlib \
?--enable-fpm \
?--enable-bcmath \
?--enable-libxml \
?--enable-inline-optimization \
?--enable-gd-native-ttf \
  ?--enable-mbregex \
  ?--enable-mbstring \
  ?--enable-opcache \
  ?--enable-pcntl \
  --enable-shmop \
  ?--enable-soap \
  ?--enable-sockets \
?  --enable-sysvsem \
  ?--enable-xml \
?  --enable-zip ? 编译安装 #?make &&? make install 配置文件   #?cp php.ini-development /usr/local/php/lib/php.ini   #?cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf
  #?cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf   #?cp -R ./sapi/fpm/php-fpm /etc/init.d/php-fpm ?

本文标题为:nginx与PHP配置

基础教程推荐