在centos上安装php5.5+MySQL 5.5.32

http://www.php100.com/html/php/rumen/2013/0909/6094.html

在centos直接使用yum install 安装php的话版本比较低,如果需要高版本的话,请看如下:

Step 1: Installing Remi Repository

01.## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 32 Bit ##
04. 
05.## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 64 Bit ##
08. 
09.## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 32 Bit ##
12. 
13.## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 64 Bit ##

Step 2: Installing Apache, MySQL 5.5.32 & PHP 5.5.0

1.## Installing on RHEL/CentOS 5-6 ##
2.# yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common

Step 3: Installing PHP 5.5.0 Modules

1.## Installing on RHEL/CentOS 5-6 ##
2.# yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite
3.php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli
4.php-pear php-pdo

Step 4: Starting/Stopping Apache & MySQL 5.5.32

01.## Enable Apache and MySQL on Run-Levels ##
02.# chkconfig --levels 235 httpd on
03.# chkconfig --levels 235 mysqld on
04. 
05.## Apache Commands ##
06.# /etc/init.d/httpd start
07.# /etc/init.d/httpd stop
08.# /etc/init.d/httpd status
09. 
10.## MySQL Commands ##
11.# /etc/init.d/mysqld start
12.# /etc/init.d/mysqld stop
13.# /etc/init.d/mysqld status
14.好了差不多了,配置测试之类网上很多资料!!!

 

原文地址:https://www.cnblogs.com/EasonSun/p/3321034.html