Troubleshoot - by Hostrare
GnuPG is the GNU project’s perfect and free implementation of the OpenPGP standard as specified by RFC4880 . GnuPG permits you to encrypt and sign your data and report, highlights a versatile important administration policy as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command-line tool with points for easy combination with other treatments.
The installation process is straightforwardly granted you met the conditions like php-pear, gnupg, libgpg-error, and gpgme. You can install it quickly from WHM -> Module Installers -> PHP Pecl, enter gnupg and click the Install button.
You can do the same via shell with this command pecl install gnupg.
Then restart your Apache.
/etc/init.d/httpd restart
Be sure to double check if the extension was added to you php.ini.
cat /usr/local/lib/php.ini | grep gnupg.so
or
You can download and install it from source.
http://pecl.php.net/package/gnupg/docs
On Cpanel servers most of the requirements are present, like php-pear (if you compiled your apache/php with pear), gnupg, libgpg-error, etc, except for gpgme which is the main library used by gnupg extension.
Install gpgme
You can install gpgme from rpm packages.
Download rpm from mirrors.
http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/
gpgme rpm location.
wget http://mirror.centos.org/centos/6/os/x86_64/Packages/gpgme-1.1.8-3.el6.x86_64.rpm
rpm -ivh gpgme-1.1.8-3.el6.x86_64.rpm
If you have any dependency mistakes, download it from glasses and install it.
If you have faced an error library path when I check the extension,
error while loading shared libraries: libgpgme.so.11: cannot open shared object file: No such file or record
add /usr/local/lib to /etc/ld.so.conf and run ldconfig, so that libraries in this directory are detected automatically.
Verify gnupg extension with php.
root@server [~]# php -i | grep gnupggnupggnupg support => enabled
our suuport team here for you 24/7
+8801977507015support@hostrare.comsend a leter Whether you are looking for a personal website hosting plan or a business website hosting plan, We are the perfect solution for you. Our powerful website hosting services will not only help you achieve your overall website goals, but will also provide you with the confidence you need in knowing that you are partnered with a reliable and secure website hosting platform.