11.10/11.11/11.12 安装PHP5 11.13 安装PHP7
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了11.10/11.11/11.12 安装PHP5 11.13 安装PHP7相关的知识,希望对你有一定的参考价值。
11.10/11.11/11.12 安装php5
安装 libxml2-devel openssl-devel bzip2-devel libpng-devel freetype-devel epel-release libmcrypt-devel 软件包
./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif
11.13 安装PHP7
cd /usr/local/src/
wget http://cn2.php.net/distributions/php-7.1.6.tar.bz2
tar zxf php-7.1.6.tar.bz2
cd php-7.1.6
./configure --prefix=/usr/local/php7 --with-apxs2=/usr/local/apache2.4/bin/apxs --with-config-file-path=/usr/local/php7/etc --with-pdo-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-libxml-dir --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-bz2 --with-openssl --with-mcrypt --enable-soap --enable-gd-native-ttf --enable-mbstring --enable-sockets --enable-exif
make && make install
ls /usr/local/apache2.4/modules/libphp7.so
cp php.ini-production /usr/local/php7/etc/php.ini
以上是关于11.10/11.11/11.12 安装PHP5 11.13 安装PHP7的主要内容,如果未能解决你的问题,请参考以下文章
11.10/11.11/11.12 安装PHP5 11.13 安装PHP7
11.10/11.11/11.12 安装PHP5 11.13 安装PHP7
11.10/11.11/11.12 安装PHP5 11.13 安装PHP7
11.10/11.11/11.12 安装PHP5 11.13 安装PHP7