Install GPG/PGP on Ubuntu 12.04

Asked by swapnil


I need assistance to load GPG/PGP libraries on Ubuntu server 12.04.

I have installed all required libraries on this server.
- gnupg
- libgpg-error
- gpgme
I checked in phpinfo and got the result for gnupg. but I am quit confusing about, are these libraries are loaded properly or not?. when I execute the
below code :
$gnupg = new gnupg();
$res = gnupg_init();
this code gives me fatal error for class not found.

Could you please assist me on this?

Where we need to check :
in whcih folder?
in which library.
in how to test this.
Please provide step-by-step on this this will very help full to us.


Question information

English Edit question
Ubuntu php-crypt-gpg Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Thomas Krüger (thkrueger) said :

You are most likely missing the PHP library for GPG. It's names php-crypt-gpg as far as i remember.

Can you help with this problem?

Provide an answer of your own, or ask swapnil for more information if necessary.

To post a message you must log in.