Method for installing php5.2.17 in CentOS 6.4 _linux

Source: Internet
Author: User

Install the system and related services httpd,mysql,php, a run code, found php5.3 in the spilt function can not be used, the code inside a lot of use Ah, hurriedly online find out, there is no yum install php5.2 or change the dead code.

I found it. Methods are as follows

1. Environmental

Copy Code code as follows:
centos6.4 x86_64

2. Add Source

Copy Code code as follows:
Wget-q-o-http://www.atomicorp.com/installers/atomic | Sh

3. Excluding php5.3 bags, we only need php5.2.17

Copy Code code as follows:
Vim/etc/yum.conf
exclude=*5.3.*

4. Installation

Copy Code code as follows:
Yum install php php-mysql php-xml php-gd php-mbstring

Done

PS: I hope that developers will write code later to use the split () function.

The above is the entire contents of this CentOS 6.4 installation php5.2.17. Hope to give you a reference, but also hope that we support the cloud-dwelling community.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.