How to install php5.2 on centos yum: first add the source; then install php through the command "yum install php php-mysql php-xml php-gd php-mbstring php-cli".
Recommendation: "PHP Video Tutorial"
Install php5.2.17 using yum command in CentOS 6.4
When I recently deployed a server to a company, I found that the server they provided was centos6.4 system. After installing the system and related services httpd, mysql, and php, I ran the code and found zend in php5.3. Encryption cannot be used. After installing Zend Guard Loader, it still cannot be used. Only then did I find that the program only supports Zend Optimizer decryption. So I had to look for the version of php5.2. Quickly search online to see if there is any yum installation of php5.2.
I really found it. I had 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 php5.3 package, we only Requires php5.2.17
vim /etc/yum.conf
Add this line: exclude=*5.3.*
4. Installation
yum install php php-mysql php-xml php-gd php-mbstring php-cli
Done!
(Note: I installed according to this method and installed it as php5.4. Fortunately, the original directory read and write permission error was solved)
The above is the detailed content of How to install php5.2 on centos yum. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
