HostOnNet Blog

Compiling PHP with verisign PayFlowPro on cpanel server

Looking for Linux Server Admin or WordPress Expert? We can help.

To compile PHP with custom modules, you need to run /scripts/easyapache with required modules.
 
After the Apache installation, go to folder
 
# cd /home/cpapachebuild/buildapache/
 
Now change to the PHP directory, name of the directory depends on which version of PHP you installed with easyapache. I selected PHP 4.4.1, so i have to do
 
# cd /home/cpapachebuild/buildapache/php-4.4.1
 
Now find current php configuration with
 
# php -i |grep configure
 
Next download the file pfpro_linuxrh9.tar from verisign members area, unzip it.
 
# cd /usr/local/
# tar -xvf pfpro_linuxrh9.tar
# cd verisign/payflowpro/linux9/lib
# ./buildpfpro.sh
 
Copy the files to include and lib folder
 
# cp pfpro.h /usr/include/
# cp libpfpro.so /usr/lib/
 
Now go to folder
 
# cd /home/cpapachebuild/buildapache/php-4.4.1
 
# ./configure –with-apxs=/usr/local/apache/bin/apxs –prefix=/usr/local –with-xml –enable-bcmath –enable-calendar –with-curl –with-dom –with-dom-xslt –with-dom-exslt –enable-exif –enable-ftp –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr –with-xpm-dir=/usr/X11R6 –with-gettext –with-imap –with-imap-ssl –with-kerberos –enable-mbstring –enable-mbstr-enc-trans –enable-mbregex –with-mcrypt –with-mhash –enable-magic-quotes –with-mysql=/usr –with-openssl –enable-discard-path –with-pear –enable-sockets –enable-track-vars –with-ttf –with-freetype-dir=/usr –enable-gd-native-ttf –enable-versioning –enable-wddx –with-xmlrpc –with-zip –with-zlib  –with-pfpro
 
# make
 
# make install
 

Posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.