CentOS 7 Yum Installation php5.6

Source: Internet
Author: User
Tags apcu

Configuring the Yum Source

Additional CentOS 6.5 Epel and Remi sources are added.

# yum Install epel-release# RPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

The following is the source for CentOS 7.0.

# yum Install epel-release# RPM-IVH http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

Use the Yum List command to view the installable packages (Packege).

# Yum List--enablerepo=remi--enablerepo=remi-php56 | grep php
Installing PHP5.6

The Yum source is configured, and the next step is to install PHP5.6.

# yum Install--enablerepo=remi--enablerepo=remi-php56 php php-opcache php-pecl-apcu php-devel php-mbstring php-mcrypt p Hp-mysqlnd php-phpunit-phpunit php-pecl-xdebug php-pecl-xhprof php-pdo php-pear php-fpm php-cli php-xml Php-bcmath Php-process PHP-GD Php-common

Php-opcache and PHP-PECL-APCU will effectively improve the speed of PHP execution.

Use the PHP command to view the version.

# php-v

CentOS 7 Yum Installation php5.6

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.