Once compiled, you need to add this block to your Apache configuration:
<IfDefine OPENPGP> <IfModule !mod_openpgp.c> LoadModule openpgp_module modules/mod_openpgp.so </IfModule> </IfDefine>
I generally put those lines inside a file in /etc/apache2/modules.d, namely "99_mod_openpgp.conf", because all *.conf files get included from httpd.conf via an Include statement. In any case, you can always put the above block in the bottom of the main httpd.conf file.
Once that block has been added, a simple /etc/init.d/apache2 reload (or equivalent for your OS) should suffice.
To verify the module has been loaded, you can use try a command similar to this one (adapt to suit your needs, but you can use the output of " ps ax | grep -E 'apache|httpd' " to get an idea):
/usr/sbin/apache2 -D DEFAULT_VHOST -D PHP5 -D CBAND -d /usr/lib64/apache2 -f /etc/apache2/httpd.conf -t -D DUMP_MODULES 2>&1 | grep openpgp
You should get something like: "openpgp_module (shared)".
Once there, you might wish to add/modify a VirtualHost block. This is the Apache VirtualHost configuration block for maotest.buanzo.org:
<VirtualHost *:80> ServerName maotest.buanzo.org DocumentRoot /var/www/maotest.buanzo.org/htdocs CustomLog /var/www/maotest.buanzo.org/logs/access_log combined ErrorLog /var/www/maotest.buanzo.org/logs/error_log Options ExecCGI Includes MultiViews Indexes FollowSymlinks SymLinksIfOwnerMatch <IfModule mod_openpgp.c> # Turn on the OpenPGP Engine for this VirtualHost OpenPGPEngine on # Set the GnuPG Home Directory OpenPGPHomeDir /var/www/.gnupg # Enable support for Enigform's mod_openpgp support discovery <Location /HTTP_OPENPGP_DISCOVERY> SetHandler mao_Discovery </Location> # Enable support for Enigform's Secure Session Initiation <Location /HTTP_OPENPGP_BEGIN_SESSION> SetHandler mao_BeginSession </Location> <Location /HTTP_OPENPGP_END_SESSION> SetHandler mao_EndSession </Location> </IfModule> </VirtualHost>
Again, you will need to issue a /etc/init.d/apache2 reload.