The experimental installation: PHP5.6 version:
1. Download the installation file PHP5.6: Go to the / usr / loacl / src
http://cn2.php.net/distributions/php-5.6.39.tar.bz2
2. Unzip the file tar zvxf php-5.6.39.tar.gz
3. Go to the PHP directory, initialize:
4. Installation given:
-qa RPM | grep libxml2 according to error file to view needs to be installed, install two files:
[root@rh-linux /]# yum install libxml2
[root@rh-linux /]# yum install libxml2-devel -y
Installation openssl:
yum install openssl openssl-devel
And error, prompts to install BZip2: yum install bzip2 bzip2-devel
And Tips: JpegLib .h not found
rpm -qa | grep libjpeg
yum -y install libjpeg libjpeg-devel
提示:png.h not found
yum install libpng
yum install libpng-devel
提示:freetype-config not found
yum install freetype
yum install freetype-devel
提示:configure: error: mcrypt.h not found. Please reinstall libmcrypt.
yum install -y epel-release
yum install -y libmcrypt-devel
两个不能一起安装,因为CentOs6默认的yum源没有 libmcrypt-devel这个包,只能借助epel的yum源,所以先安装epel,再安装
libmcrypt。
5. 执行make 操作。
6. 执行make install 操作:
7. 查看PHP的安装信息:
PHP的扩展模块:
查看PHP加载的模块有哪些:
apache 的配置文件: