Trying to install gRPC via PHP PECL leads to the installation process never finishing in cPanel/WHM

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 -y
 

Then start the screen session:

 
screen -S gRPCInstall
 

Now run the gRPC install:

 
/opt/cpanel/ea-php83/root/usr/bin/pecl install grpc

Detach from screen safely

Press:

 
CTRL + A
then press D
 

This will detach but keep the installation running.


Reconnect to screen later

screen -r gRPCInstall
 

Check if grpc installed

 
/opt/cpanel/ea-php83/root/usr/bin/php -m | grep grpc

Expected output:

grpc
 

Tip (important for gRPC builds)
Before installing, make sure these exist:

 
yum install gcc gcc-c++ make autoconf libtool -y
 

Otherwise PECL compilation may fail.

  • install grpc on cpanel server, grpc on whm in loop, grpc cpanel process never finishes
  • 0 Users Found This Useful
這篇文章有幫助嗎?

相關文章

How to show hidden files (.htaccess) in cPanel File Manager?

Many users ask us how they can see the .htaccess files for their websites in cPanel File Manager....

How Can I Compress / Uncompress Files Using the File Manager?

How to Compress Files Go to the File Manager. Navigate to the folder where the files you want...

How to View Your cPanel Disk Space Usage?

In order to view your cPanel disk space usage, there’s a great tool located inside of your...

Accessing webmail for your domain

To access the included webmail email clients included with your hosting account, you’ll need to...

How to rename a database in phpMyAdmin?

phpMyAdmin is a free and opensource application for MySQL database management. It is one of the...