博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
php7 源码安装
阅读量:6911 次
发布时间:2019-06-27

本文共 1289 字,大约阅读时间需要 4 分钟。

  • 安装php依赖组件
yum -y install wget openssl* gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers make gd gd2 gd-devel gd2-devel libaio
  • 下载

官网下载地址:

  • 解压并安装
#解压tar -zxvf php-7.2.12.tar.gzcd php-7.2.12#安装./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --enable-ftp --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --with-gettext --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlndmake && make install
  • 扩展命令
#查看php.ini 目录php -i |grep php.ini#设置php为全局变量vim /etc/profileexport PATH=$PATH:/usr/local/php/bin #添加到配置文件source /etc/profile #配置文件修改,需要立即生效执行此命令

转载地址:http://pqfcl.baihongyu.com/

你可能感兴趣的文章
Custom Accessories
查看>>
【转】xcode APP 打包以及提交apple审核详细流程(新版本更新提交审核)
查看>>
DirectX 3D 之C#开发
查看>>
隐藏nginx 版本号信息(转)
查看>>
转:Java中的Clone()方法详解
查看>>
【CloudFoundry】架构、设计参考
查看>>
c++字符串变量---8
查看>>
MYSQL使用中字符编码一坑
查看>>
hibernate的注解属性mappedBy详解
查看>>
A basic Windows service in C++ (CppWindowsService)
查看>>
Linux环境变量设置指南
查看>>
bootstrap
查看>>
EasyUI的DataGrid 打印导出
查看>>
转:Delphi的类与继承(VB与delphi比较)
查看>>
数字正则表达式,数字校验表达式,最正确的数字校验正则表达式
查看>>
第一百零三节,JavaScript对象和数组
查看>>
[转载]Eclipse提示No java virtual machine
查看>>
QuartZ Cron表达式
查看>>
线程池学习笔记
查看>>
MHA环境的搭建
查看>>