Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Saturday, April 08, 2006

Compiling PHP with verisign PayFlowPro on cpanel server

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
 

0 Comments:

Post a Comment

<< Home