一、安装依赖包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配置
猜你喜欢
- Laravel balde模板文件中判断数据为空方法 2023-08-30
- PHP中PDO事务处理操作示例 2022-10-15
- PHP仿tp实现mvc框架基本设计思路与实现方法分析 2022-10-18
- laravel通用化的CURD的实现 2023-03-17
- laravel实现按月或天或小时统计mysql数据的方法 2023-02-22
- PHP实现微信支付(jsapi支付)流程步骤详解 2022-10-09
- php微信公众号开发之秒杀 2022-11-23
- windows下9款一键快速搭建PHP本地运行环境的好工具(含php7.0环境) 2023-09-02
- PHP简单实现二维数组的矩阵转置操作示例 2022-10-02
- 用nohup命令实现PHP的多进程 2023-09-02