Problem with php build in customapache

barry

Verified User
Joined
Jan 12, 2004
Messages
21
I am trying to compile my php with payflow pro from verisign. To do this you download the verisign library (for redhat 9 in my case) and copy the library to /usr/local/lib and the include to /usr/local/include and then add --with-pfpro to the configure (which i added to the configure.php).

I did:
./build update
./build clean
./build all

and I even see this in the php configuration part:
checking for Verisign Payflow Pro support... yes
checking for pfproInit in -lpfpro... (cached) yes

But I get this error

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).

Make Complete
Installing php...
Installing PHP SAPI module: apache
[activating module `php4' in /etc/httpd/conf/httpd.conf]
cp libs/libphp4.so /usr/lib/apache/libphp4.so
chmod 755 /usr/lib/apache/libphp4.so
cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
cp /etc/httpd/conf/httpd.conf.new /etc/httpd/conf/httpd.conf
rm /etc/httpd/conf/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR - already installed: 1.3.2
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
make[1]: *** [install-pear-packages] Segmentation fault
make: *** [install-pear] Error 2

*** The install has failed, do you want to try to install it again? (y,n):

Is there a way to find out where the actual problem is and more importantly fix it?

I do know if I take out the --with-pfpro from the configure.php file it works just fine.

-Barry
 
I added this line to the configure.php file
" --with-pfpro \"


Also The line that is not working in the install is this.

/usr/local/directadmin/customapache/php-4.3.8/sapi/cli/php -n -dshort_open_tag=0 -dsafe_mode=0 /usr/local/directadmin/customapache/php-4.3.8/pear/install-pear.php -d "/usr/local/lib/php" -b "/usr/local/bin" /usr/local/directadmin/customapache/php-4.3.8/pear/packages/*.tar

all of the *.tar in the packages directory cause a seg fault.
 
Should that be

--with-pfpro=/usr/local

or

--with-pfpro=/usr/local/lib

?

I don't know if that is the problem, but I do know that is the way you configure it for a FreeBSD install. This might not help at all, but I thought I would mention it just in case.
 
I just got it working...

add "--with-pfpro=shared,/usr/local \" to the configure.php

after compile/restart you should see this in a phpinfo script

change the extension_dir directory in php.ini to the directory where the pfpro.so lives, something like "/usr/local/lib/php/extensions/no-debug-non-zts-20020429"

then add this line to the php.ini as well "extension=pfpro.so"

Than you should see the pfpro listed in the phpinfo page.
 
Got it installed yesterday on another non-DA machines, now I am struggling to get it on a DA, FreeBSD 5.2.1 machine. It seems there are others with this problem, but I have not found a solution that fits. I can't get it to compile.

checking for Verisign Payflow Pro support... yes, shared
checking for pfproInit in -lpfpro... no
checking for PNInit in -lpfpro... no
configure: error: The pfpro extension requires version 2 or 3 of the SDK

*** There was an error while trying to configure php. Check the configure.php file


This is really annoying considering Verisign put out a download for FreeBSD 5.x that is suppose to work without problems......

Anyone running PayFlow Pro on Freebsd and DA?
 
Back
Top