Symptoms
When trying to install the gRPC module via the module installer menu or PHP PECL, you may find that the system seems to become stuck and the install process itself appears to be looping.
Description
In most cases, the installation process is actually proceeding as expected. The gRPC module actually requires a large amount of time and disk space to fully build. As such, it can take longer than thirty minutes for this process to complete.
Workaround
Due to the time that this process can take to complete, we would recommend that this installation be performed via the command line and within a screen if possible. This way, the process will continue even if your SSH connection is interrupted or times out.
screen is only used so the gRPC compilation continues even if SSH disconnects, because compiling gRPC can take 10–20 minutes.
Install screen
Run:
yum install screen -yThen start the screen session:
screen -S gRPCInstallNow run the gRPC install:
/opt/cpanel/ea-php83/root/usr/bin/pecl install grpcDetach from screen safely
Press:
then press D
This will detach but keep the installation running.
Reconnect to screen later
screen -r gRPCInstallCheck if grpc installed
/opt/cpanel/ea-php83/root/usr/bin/php -m | grep grpcExpected output:
Tip (important for gRPC builds)
Before installing, make sure these exist:
yum install gcc gcc-c++ make autoconf libtool -yOtherwise PECL compilation may fail.
