CentOS 7 安装php7(已有php5.4)
新的程序需要php7才能支持,老程序必须用php5.x 准备安装php7之前已经用yum安装了php5.4了,因为有老程序必须使用所以需要保留php5.4 采用源码编译安装 wget http://am1.php.net/distributions/php-7.2.0.tar.bz2tar -jxvf php-7.2.0.tar.bz2cd php-7.2.0 安装依赖库yum -y install libxml2-devel curl-devel libpng libpng-devel libxslt libxslt-devel ./configure --prefix=/usr/local/php7 --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 --...