From 2531adb54a8e42180130052323c57f95d923c7f6 Mon Sep 17 00:00:00 2001 From: Stanley Cheung Date: Fri, 17 Feb 2017 17:39:46 -0800 Subject: [PATCH] PHP: update instructions for CentOS/RHEL users --- docs/quickstart/php.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/quickstart/php.md b/docs/quickstart/php.md index 01f181b1..0cf541cd 100644 --- a/docs/quickstart/php.md +++ b/docs/quickstart/php.md @@ -32,6 +32,14 @@ PHP 7.0 or above $ [sudo] apt-get install php7.0 php7.0-dev php-pear zlib1g-dev ``` +### Install PHP and PECL on CentOS/RHEL 7 + +```sh +$ [sudo] rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm +$ [sudo] rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm +$ [sudo] yum install php56w php56w-devel php-pear phpunit gcc zlib-devel +``` + ### Install PECL on Mac OS ```sh $ brew install autoconf @@ -75,7 +83,11 @@ is. ```sh extension=grpc.so -``` +``` + +Note: for users on CentOS/RHEL 6, unfortunately this step won't work. Please +follow the instructions [here](https://github.com/grpc/grpc/tree/master/src/php#build-from-source) +to compile the PECL extension from source. ### Install Protobuf