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:
- Drop
pfpro.h
andlibpfpro.so
into their respective directories per Requirements. - Install the RedHat Enterprise Linux or Fedora Core PHP SRPM.
- Add “
--with-pfpro=shared,/usr/local \
” to the “%configure \
” line inphp.spec
. - Run
rpmbuild -bc php.spec
. - Copy
/usr/src/redhat/BUILD/php-X.X.X/build-apache/modules/pfpro.so
to/usr/lib/php4
. - 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.