Install PHP5.3How to install PHP 5.3 on Centos

Source: Internet
Author: User

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

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.