I'm looking for a some help creating a portable php-cgi binary.
Magento was kind enough to create this php cgi binary for testing their software with. Its got all the php extensions they use statically compiled into it.
That great except they left out the 'soap' library needed to use their api and no one on those forums has been helpful so far.
So I've been trying to re-compile php with the soap library.
It compiles fine using this configure statement:
'./configure' '--enable-static' '--disable-dl' '--enable-cgi' '--enable-force-cgi-redirect' '--with-config-file-path=/etc/php5cgi' '--prefix=/usr/local/php5cgi' '--with-gd' '--with-mysql' '--with-mcrypt=/home/yoji/libmcrypt-2.5.7' '--with-mhash=/home/yoji/mhash-0.9.9' '--with-curl' '--enable-ftp' '--with-openssl' '--with-dom' '--enable-sockets' '--with-zlib' '--with-zlib-dir=/usr/include' '--with-pear' '--with-jpeg' '--with-png' '--with-freetype' '--with-jpeg-dir' '--with-png-dir' '--with-pdo-mysql' '--with-mysqli' '--enable-soap' '--without-pdo-sqlite'
I statically compiled and installed mhash and mcrypt which you can see in the config.
I also have tried tweaking the makefile as outlined here:
When I move the binary to the target server, I get this error:
[root@mogui~]# ./php-cgi -v
./php-cgi: error while loading shared libraries: libmhash.so.2: cannot open shared object file: No such file or directory
The binary provided by the magento team works so I know its possible, I just don't know how they did it.
I've tried with CentOS 5.1, RHEL5, and Ubuntu 8.10 (all i386)
The target OS is RHEL5