Skip to content

Instantly share code, notes, and snippets.

@nelson6e65
Last active April 27, 2021 01:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nelson6e65/90439e14cb8ab95662dd864969d1f32c to your computer and use it in GitHub Desktop.
Save nelson6e65/90439e14cb8ab95662dd864969d1f32c to your computer and use it in GitHub Desktop.
Install gRPC PHP

gRPC on Ubuntu

https://cloud.google.com/php/grpc

Install via PECL:

sudo pecl install grpc
sudo pecl install protobuf

Copy files under /etc/php/{VERSION}/mods-available/

Enable extensions:

sudo phpenmod grpc
sudo phpenmod protobuf

Restart PHP:

sudo systemctl restart php{VERSION}-fpm
extension=grpc.so
extension=protobuf.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment