CentOS 7 LNMP Deployment-php Common plugins

Source: Internet
Author: User
Tags imagemagick rabbitmq

First, install the YAF
1. Download
wget http://pecl.php.net/get/yaf-3.0.7.tgz

2. Unzip the installation
Tar zxf yaf-3.0.7.tgz

CD yaf-3.0.7 && phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install

Second, installation Yar

1. Download
wget http://pecl.php.net/get/yar-2.0.4.tgz

2. Unzip the installation
Tar zxf yar-2.0.4.tgz
CD yar-2.0.4 && phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install

Three, install Msgpack

1. Download
wget http://pecl.php.net/get/msgpack-2.0.2.tgz

2. Unzip the installation
Tar zxf msgpack-2.0.2.tgz
CD msgpack-2.0.2&& Phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install

Iv. installation of AMQP (requires installation of rabbitmq-c first)
1. Download
wget http://pecl.php.net/get/amqp-1.9.3.tgz

2. Unzip the installation
Tar zxf amqp-1.9.3.tgz
CD amqp-1.9.3
Phpize
./configure--with-php-config=/usr/local/php/bin/php-config--WITH-AMQP--with-librabbitmq-dir=/usr/local/ rabbitmq-c/
Make && make install

Five, installing Redis
1. Download
wget http://pecl.php.net/get/redis-4.0.2.tgz

2. Unzip the installation
Tar zvxf redis-4.0.2.tgz
CD redis-4.0.2 && phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install

Six, install: PHP imagick Plugin

Installation dependencies:
Yum install-y ImageMagick Imagemagick-devel

Download:
Http://pecl.php.net/get/imagick-3.4.3.tgz

2. Unzip the installation
Tar zvxf imagick-3.4.3.tgz
CD imagick-3.4.3
Phpize
./configure--with-php-config=/usr/local/php/bin/php-config
Make && make install

Six, add expansion plug-in configuration

#vim/usr/local/php/etc/php.ini

Extension=yaf.so
yaf.environ= ' Zaibei '
#yaf. environ= ' Dev '
Yaf.use_namespace=1

Extension=msgpack.so
Extension=yar.so
Extension=redis.so
Extension=amqp.so

CentOS 7 LNMP Deployment-php Common plugins

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.