Install gnupg php extension in centos

All commands ran via SSH as root from /root. If you get “No package available” errors, you probably need to install the EPEL repositories.

yum install libgpg-error yum install libgpg-error-devel yum install gpgme yum install gpgme-devel yum install pygpgme pecl install gnupg

You will then need to edit your /usr/local/lib/php.ini file and verify/insert the extension=gnupg.so line. If this line isn’t already in the file, just add it at the bottom. Run php -m and look for a gnupg line. Next run php -r "phpinfo();". You should see something like:

gnupg support => enabled GPGme Version => 1.1.8 Extension Version => 1.3.2-dev

Then you’ll just need to restart the web server .

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s