CENTOS7下编译安装PHP-5.4以及配置phpMyAdmin
1、yum -y install bzip2-devel openssl openssl-devel libxml2-devel
2、yum -y install epel-release
3、yum -y install libmcrypt-devel
4、tar xf php-5.4.26.tar.bz2
5、cd php-5.4.26
6、 ./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-openssl \
--with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --with-freetype-dir \
--with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --enable-sockets\
--with-apxs2=/usr/local/apache/bin/apxs --with-mcrypt --with-config-file-path=/etc \
--with-config-file-scan-dir=/etc/php.d --with-bz2 --enable-maintainer-zts
7、make
8、make test
9、make install
10、cp php.ini-production /etc/php.ini
11、vim /etc/httpd/httpd.conf
定位AddType,新增两行
AddType application/x-htt