I previously transferred an article [to] How to install PHP 5.3 on CentOS, and found that this method only applies to me. It is unavailable when I install it for someone else today.
I have found the following method to install php5.3.20 successfully.
Among them, he previously installed nginx, although deleted but still occupied 80. We can find it and kill it.
Ps-aux | grep nginx
Kill-9 pid
Problem 1: error: 'Can't connect to local MySQL server through socket '/var/lib/mysql. sock' (2 )'
Mysql-server is not installed: # yum install mysql-server
Problem 2: ERROR 1044 (42000): Access denied for user ''@ 'localhost' to database 'root'
Mysql-uroot-p
----------------------------------------------
Install php5.3 from atomicorp.com today
1. Install repository key
To enable access to both the atomic yum repository use the following automatic installer:
> Wget-q-O-http://www.atomicorp.com/installers/atomic | sh
2. Create a New Yum Source
> Vim/etc/yum. repos. d/CentOS-Atomicorp.repo
The content is as follows:
[Atomic]
Name = CentOS/Red Hat Enterprise Linux $ releasever-atomicrocketturtle.com
Export List = http://www.atomicorp.com/?list/atomic/centos-5-?basearch
# Items list = http://www.atomicorp.com/channels/atomic/centos/5/mirrors-atomic
Enabled = 1
Priority = 1
Protect = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
Gpgcheck = 1
# Almost Stable, release candidates for [atomic]
[Atomic-testing]
Name = CentOS/Red Hat Enterprise Linux $ releasever-atomicrocketturtle.com-(Testing)
Export List = http://www.atomicorp.com/javaslist/atomic-testing/centos-5-w.basearch
Enabled = 0
Priority = 1
Protect = 0
Gpgkey = file: // etc/pki/rpm-gpg/RPM-GPG-KEY.art.txt
Gpgcheck = 1
# Untested, unstable, known buggy, and incomplete packages.
# [Atomic-bleeding]
# Name = centos/Red Hat Enterprise Linux $ releasever-atomicrocketturtle.com-(bleeding)
# Baseurl = http://www.atomicorp.com/channels/atomic-bleeding/centos/5/?basearch/
# Enabled = 0
# Priority = 1
# Protect = 0
# Gpgkey = file: // etc/pki/rpm-GPG/RPM-GPG-KEY.art.txt
# Gpgcheck = 1
3. install PHP
> Yum install PHP