...

Install St George IPG on CentOS with cPanel

gorilla-chimp
yum install swig gcc gcc-c++ autoconf automake sed php-devel
mkdir -p /opt/stgeorgeipg/ && cd /opt/stgeorgeipg/
wget --user-agent="Mozilla/5.0 (Windows NT 5.2; rv:2.0.1) Gecko/20100101 Firefox/4.0.1" https://www.ipg.stgeorge.com.au/downloads/StGeorgeLinuxAPI-3.3.tar.gz
tar -xvzf StGeorgeLinuxAPI-3.3.tar.gz
cd webpaySWIG-3.3

Once downloaded and extracted, edit the makefilePhp5 as follows:

PHP_EXTENSIONS = /usr/local/lib/php/extensions/no-debug-non-zts-20100525
PHP_INCLUDE_DIR = /home/cpeasyapache/src/php-5.4.35/

Note the paths may vary on different PHP versions.

make -f makefilePhp5

If running on 64 bit, you need to link up the 32 bit SSL binaries to the 64 bit binaries, as follows. You can also check what each .so* file requires by using ldd.

ln -s /usr/lib64/libssl.so.1.0.1e /usr/lib64/libssl.so.6
ln -s /usr/lib64/libcrypto.so.1.0.1e /usr/lib64/libcrypto.so.6

Finally, edit your php.ini – find it via `whereis php` and add the following line:

extension = webpay_php.so

Restart Apache

service httpd restart

 

Notes:

Always double check the permissions / ownership!

UPGRADING

Ensure that you re-make the makefilePhp with the new easyapache PHP version,

Includes = /home/cpeasyapache/src/php-5.4.25

Discover more from WIREDGORILLA

Subscribe now to keep reading and get access to the full archive.

Continue reading