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
& PHP_INCLUDE_DIR
.
PHP_EXTENSIONS you can get with
php --ini
then
cat /path/to/php.ini | grep extension_dir
and 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.