This is more of note-to-self for future reference but other people might appreciate it.
If you have to use the St George webpay API, high five to you first and you’ve probably suffered through trying to install it.
Assuming that you have all the requirements to compile it (swig, php), the only things you need to remember are:
- You need to compile it using the active php installation from cPanel/WHM, which includes the correct extension direction and devel file.
So you will need to patch the
makefilePhp5 make file and edit the values of
PHP_EXTENSIONS you can get with
cat /path/to/php.ini | grep extension_dir
PHP_INCLUDE_DIR should likely be
/usr/local/include/php/ (at least on the CENTOS machine I’m looking at)
That should take care of most of the headache relating to installation.