在centos直接使用yum install 安装php的话版本比较低,如果需要高版本的话,请看如下:
Step 1: Installing Remi Repository
<strong>## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 32 Bit ##</strong> rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm <strong>## Install Remi & Epel Repository on RHEL/CentOS 6.4-6.0 - 64 Bit ##</strong> rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm <strong>## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 32 Bit ##</strong> rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm <strong>## Install Remi Repository on RHEL/CentOS 5.9-5.0 - 64 Bit ##</strong> rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
Step 2: Installing Apache, MySQL 5.5.32 & PHP 5.5.0
<strong>## Installing on RHEL/CentOS 5-6 ##</strong> # yum --enablerepo=remi,remi-test install httpd mysql mysql-server php php-common
Step 3: Installing PHP 5.5.0 Modules
<strong>## Installing on RHEL/CentOS 5-6 ##</strong> # yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo php-sqlite <br />php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli <br />php-pear php-pdo
Step 4: Starting/Stopping Apache & MySQL 5.5.32
<strong>## Enable Apache and MySQL on Run-Levels</strong> ## # chkconfig --levels 235 httpd on # chkconfig --levels 235 mysqld on <strong>## Apache Commands ##</strong> # /etc/init.d/httpd start # /etc/init.d/httpd stop # /etc/init.d/httpd status <strong>## MySQL Commands ##</strong> # /etc/init.d/mysqld start # /etc/init.d/mysqld stop # /etc/init.d/mysqld status<br />好了差不多了,配置测试之类网上很多资料!!!<br />本文引至Install Apache, MySQL 5.5.32 & PHP 5.5.0 on RHEL/CentOS 6.4/5.9 & Fedora 19-12
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

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
How to fix KB5055612 fails to install in Windows 10?
4 weeks agoByDDD
Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Roblox: Grow A Garden - Complete Mutation Guide
3 weeks agoByDDD
Nordhold: Fusion System, Explained
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

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

Dreamweaver CS6
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

WebStorm Mac version
Useful JavaScript development tools
