Method for installing php5.2.17 in CentOS 6.4

  • 2020-05-10 23:19:26
  • OfStack

Install the system and related services httpd, MySQL, php,1 run code, found that spilt function in php5.3 can not be used, a lot of use in the code, ah, hurry to search 1, yum installed php5.2 or not to change the dead code.

I did find it. Methods the following

1. Environmental

centos6.4 x86_64

2. Add the source

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

3. Excluding the package of php 5.3, we only need php 5.2.17

vim /etc/yum.conf
exclude=*5.3.*

4. Install

yum  install  php php-mysql php-xml  php-gd php-mbstring php-cli

Well done,

ps: hopefully developers will stop writing code using the split() function.


Related articles: