How to install grpc php on ubuntu?

g0coders

Adib

Posted on May 5, 2022

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

💖 💪 🙅 🚩
g0coders
Adib

Posted on May 5, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related