zoukankan      html  css  js  c++  java
  • php5.6.3 源码安装

    php5.6.3 源码安装
    1 安装依赖库

    yum install -y autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libpng libpng-devel libxml2 libxml2-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel curl curl-devel gdbm-devel db4-devel libXpm-devel libX11-devel gd-devel gmp-devel readline-devel libxslt-devel expat-devel php-mcrypt libmcrypt libmcrypt-devel

    2 下载源码

    https://www.php.net/releases/
    链接:https://pan.baidu.com/s/1C0kf_i7ObTXUAgWUu0piiw 密码:m526

    3 安装
    下载后解压源码,进入目录,执行如下命令安装。

    ./configure --prefix=/usr/local/php/ --localstatedir=/usr/local/var --sysconfdir=/usr/local/php/ --with-config-file-path=/usr/local/php/ --with-config-file-scan-dir=/usr/local/php/ --with-pear=/usr/local/php/pear --enable-bcmath --enable-calendar --enable-dba --enable-exif --enable-ftp --enable-fpm --enable-intl --enable-mbregex --enable-mbstring --enable-mysqlnd --enable-pcntl --enable-phpdbg --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-zip --with-curl --with-fpm-user=www --with-fpm-group=www --with-freetype-dir=/usr/local/freetype --with-gd --with-gettext=/usr/local/gettext --with-jpeg-dir=/usr/local/jpeg --with-mcrypt --with-mhash --with-mysqli=mysqlnd --with-mysql=mysqlnd --with-openssl --with-pdo-mysql=mysqlnd --with-pic --with-png-dir=/usr/local/libpng --with-xmlrpc

    4 安装扩展
    根据自己的项目需要 安装phpredis等扩展。

  • 相关阅读:
    [leetCode]945.使数组唯一的最小增量
    [leetCode]974. 和可被 K 整除的子数组
    [leetCode]1035.不相交的线
    [leetCode]面试题 10.01. 合并排序的数组
    [leetCode]面试题04.二维数组
    [面试题03]数组中的重复数字
    [leetCode]169.多数元素
    [leetCode]160.相交链表
    [leetCode]155.最小栈
    POJ 2127 Greatest Common Increasing Subsequence
  • 原文地址:https://www.cnblogs.com/walkersss/p/15420461.html
Copyright © 2011-2022 走看看