This article provides a guide for how to enable GnuPG PHP extension in cPanel WHM server.
How to Enable GnuPG PHP Extensions in cPanel WHM Server
To enable the GnuPG PHP extensions in cPanel WHM server, follow the steps below:
- Login to the server as root user
- Run the following commands from SSH terminal:
sudo dnf install epel-release -y sudo dnf install gpgme-devel -y
- For each PHP version, run the following command (modify the commands for the PHP versions):
/opt/cpanel/ea-php72/root/usr/bin/pecl install gnupg
- Example:
printf "\n" | /opt/cpanel/ea-php72/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php73/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php74/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php80/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php81/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php82/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php83/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php84/root/usr/bin/pecl install gnupg
printf "\n" | /opt/cpanel/ea-php85/root/usr/bin/pecl install gnupg - Run the following commands to restart PHP-FPM and Apache webservers:
/scripts/restartsrv_httpd /scripts/restartsrv_apache_php_fpm
Conclusion
You now know how to GnuPG PHP extensions in cPanel WHM server.

👀 Choose SSD-powered VPS servers for increased speed, power, and security! Now 50% off- starting from only $3.19/mo.