Yum command installation PHP7 and related extension _php tips

Source: Internet
Author: User
Tags gpg install php centos

Installing PHP7 and related extensions

RPM-UVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm 
rpm-ivh http:// nginx.org/packages/centos/6/noarch/rpms/nginx-release-centos-6-0.el6.ngx.noarch.rpm (nginx)
RPM-UVH http:// rpms.famillecollet.com/enterprise/remi-release-6.rpm 

1.cd/etc/yum.repos.d

2.nano Remi.repo

>>>>
[remi-php55]
Name=remi ' s PHP 5.5 RPM repository for Enterprise Linux 6-$basearch
#baseurl =http://rpms.remirepo.net/enterprise/6/php55/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/ Php55/mirror
# Notice:common dependencies are in Remi-safe enabled=1
Etc/pki/rpm-gpg/rpm-gpg-key-remi
>>>>>

Set the enabled to 0;

3.nano Remi.repo

>>>
[remi-php70]
Name=remi ' s PHP 7.0 RPM repository for Enterprise Linux 6-$basearch
#baseurl = http://rpms.remirepo.net/enterprise/6/php70/$basearch/
mirrorlist=http://rpms.remirepo.net/enterprise/6/ Php70/mirror
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/rpm-gpg-key-remi
>>> >>

Set the enabled to 1;

4. Installation extension:

Yum install PHP-SOLR php-opcache php-seaslog php-mysqlnd php-hprose php-mbstring php-mcrypt php-mongodb php-mysqli php-gd Php-dom PHP-APC php-memcache php-redis

service php-fpm Restart && service Nginx restart

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.