CENTOS6 use Yum to install php5.4+mysql5.5 tutorial

Source: Internet
Author: User
Tags install php php mysql centos zend


System: CentOS 5.x
Package Required:
epel-release-5-4.noarch.rpm
remi-release-5.rpm
1. Installation Preparation
# #Install Remi Repository on Rhel/centos 5.0-5.9-32 Bit # #
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

# #Install Remi Repository on Rhel/centos 5.0-5.9-64 Bit # #
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

2. Install apche php mysql
Yum--enablerepo=remi,remi-test install httpd mysql mysql-server php php-common-y

3. Install Apache Extension
Yum--enablerepo=remi,remi-test install httpd-manual mod_ssl mod_perl mod_auth_mysql httpd-devel-y

4. Install PHP extensions
Yum--enablerepo=remi,remi-test install php-mysql php-pgsql php-pecl-mongo \
Php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli \
Php-pear Php-pdo

5. Install MySQL extension
Yum--enablerepo=remi,remi-test install MYSQL-CONNECTOR-ODBC mysql-devel libdbi-dbd-mysql

6. Start and verify
Service mysqld Start
Service httpd Start
Chkconfig httpd on
Chkconfig mysqld on

Httpd-v
Server version:apache/2.2.3
Server built:sep 16 2014 11:05:09

Php-v
PHP 5.4.40 (CLI) (BUILT:APR 15 2015 16:05:43)
Copyright (c) 1997-2014 the PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

Mysql-v
MySQL Ver 14.14 distrib 5.5.43, for Linux (x86_64) using ReadLine 5.1

OK, that's it, the installation is over.

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.