Running Verisign Payflow Pro under PHP on Red Hat Enterprise Linux or Fedora Core

When running Verisign Payflow Pro under PHP on Red Hat Enterprise Linux or Fedora Core, all of the SDK instructions assume that PHP is getting recompiled and reinstalled from scratch. This is all well and good on testbed systems, but not so hot for productions systems that use subscription-based package and security updates.

Luckily, pfpro.so can be compiled as a loadable module:

  1. Drop pfpro.h and libpfpro.so into their respective directories per Requirements.
  2. Install the RedHat Enterprise Linux or Fedora Core PHP SRPM.
  3. Add “--with-pfpro=shared,/usr/local \” to the “%configure \” line in php.spec.
  4. Run rpmbuild -bc php.spec.
  5. Copy /usr/src/redhat/BUILD/php-X.X.X/build-apache/modules/pfpro.so to /usr/lib/php4.
  6. Add “extension=pfpro.so” to /etc/php.d/pfpro.ini using the other .ini files as templates.

Now sit back, relax, and bask in the knowledge that you are contributing to the evil empire that is Verisign.