How to Enable GnuPG PHP Extensions in cPanel WHM Server

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:

  1. Login to the server as root user
  2. Run the following commands from SSH terminal:
    sudo dnf install epel-release -y
    sudo dnf install gpgme-devel -y
  3. 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
  4. 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
  5. 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.

Launch 100% SSD VPS from $2.49/mo!

  • gnupg, php extensions
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Disable Network Manager on CentOS 7

This article will provide the steps to disable Network Manager in CentOS 7. Network Manager is...

Disable Network Manager on CentOS 6

This article will provide the steps to disable Network Manager in CentOS 6. Network Manager is...

How to Find the IP of cPanel/WHM Server

This tutorial is designed to troubleshoot and diagnose issues with cPanel license errors. Find...

Uninstall WHMXtra on cPanel Server

This article provides a quick and direct guide for uninstalling the WHMXtra plugin from a...

How to Customize cPanel Installation

This article provides a guide for customizing a cPanel server installation, using the...