Dear community,
I am having a very hard time trying to get gnupg php module to work. I have
tried searching Google, asking cPanel and Cloudlinux but no luck.
Below are some information you might find usefull in helping me to get it to work:
WHM Installed PHP Pecl: gnupg v1.3.3
whereis gnupg
gnupg: /etc/gnupg /usr/share/gnupg
gpg --version
gpg (GnuPG) 1.4.9
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Home: ~/.gnupg
Supported algorithms:
Pubkey: RSA, RSA-E, RSA-S, ELG-E, DSA
Cipher: 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH
Hash: MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
yum install gpgme
Setting up Install Process
Package gpgme-1.1.8-3.el6.x86_64 already installed and latest version
Nothing to do
yum install libgpg-error
Setting up Install Process
Package libgpg-error-1.7-4.el6.x86_64 already installed and latest version
Nothing to do
php -i | grep gnupg
gnupg
php: gnupg support => enabled
symbol lookup error:
/usr/local/lib/php/extensions/no-debug-non-zts-20090626/gnupg.so: undefined
symbol: gpgme_check_version_internal
I don't know that is going wrong. My server is running cPanel on CentOS, on top
of which Cloudlinux is installed.
A script of mine that encrypts a string and displays the outcome doesn't work as
well as phpinfo.php doesn't load completely. If I remove gnupg pecl then
encrypt.php throws an error saying the gnupg classes are not found, whereas when
installed it throws a blank page. Also when gnupg is removed, phpinfo.php loads
fine, but when gnupg.so is present to php.ini then phpinfo.php does not load.
Can you please help me troubleshooting this issue? I have been trying for a
month now without any luck.