Skip to content

Commit

Permalink
Merge pull request grpc#460 from stanley-cheung/php-update-centos-ins…
Browse files Browse the repository at this point in the history
…tructions

PHP: update instructions for CentOS/RHEL users
  • Loading branch information
stanley-cheung authored Mar 1, 2017
2 parents 9b9fb30 + 2531adb commit c04157f
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/quickstart/php.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit c04157f

Please # to comment.