DEV Community

Adib
Adib

Posted on

3 2

How to install grpc php on ubuntu?

  1. Installing PECL :
    sudo apt-get install autoconf zlib1g-dev php-dev php-pear

  2. Installing Composer ( skip if already installed ) :
    curl -sS https://getcomposer.org/installer | php
    sudo mv composer.phar /usr/local/bin/composer

  3. Installing extension php grcp :
    sudo pecl install grpc

  4. Edit your php.ini in /etc/php/{7.4 or 8.0 or other php version }/cli/php.ini and add extension=grpc.so

Good luck

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay