Install php5.2.17 using the yum command in CentOS 6.4

Source: Internet
Author: User

Recently, when deploying servers for the company, we found that the servers they provided were CentOS6.4. After installing the system and related services httpd, mysql, php, and one-run code, we found that zend encryption in php5.3 was not available, after Zend Guard Loader is installed, Zend Guard Loader cannot be used. Only Zend Optimizer decryption is supported in the program. So I had to find the php5.2 version. Check whether php5.2 is installed in yum.
 
I found it. You have to modify the yum source. The method is as follows:
 
1. Environment
Centos6.4 x86_64
 
2. Add Source
Wget-q-O-http://www.atomicorp.com/installers/atomic | sh
 
3. Exclude the php5.3 package. We only need php5.2.17.

Vim/etc/yum. conf

Add this row: exclude = * 5. 3 .*

 
4. Installation

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

Success!

(Note: I have installed php5.4 in accordance with this method. Fortunately, the original directory read/write permission error is solved)

Recommended reading:

RedHat Linux local yum source configuration

RedHat 6.2 modify yum source in Linux use CentOS source for free

Configure the epel yum Source

Redhat local yum source configuration

Description of yum configuration file

Install yum in RedHat 6.1)

YUM installation and cleaning

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.