Installing Ioncube loader for Associate-o-matic on Bluehost
I had a heck of a time installing the ioncube loader on bluehost and making it work for AOM’s shopping cart. But finally figured it out. If you are getting a message that ioncube must be installed try the following.
Step 1 - Go to ioncube.com and get the ppc64.zip linux version of the loader. It is zipped so you can unzip it to your pc and upload the files to your site. The version that comes with AOM may not be the correct version. If not on Bluehost, check your servers configuration and get either 32 or 64 bit version that is compatible with your server.
Step 2 - Put the ioncube loader at the /home/sitename/ioncube/ directory level, not /public_htm/ioncube/. Copy the version of the files you need (currently 5.2.so) to the ioncube directory.
Step 3 - Goto the Bluehost cPanel and find the software/services box and click the PHP config button. Once that opens, scroll down to Install Default php.ini , select the ioncube checkbox and click the install PHP master ini button.
This will load a php.ini.default file to your public_html directory.
Step 4 - using File Manager edit the php.ini.default file. Scroll near the bottom where you see this:
zend_extension=/home/sitename/ioncube/ioncube_loader_lin.so
zend_extension_ts=/home/sitename/ioncube/ioncube_loader_lin_ts.so
[Zend]
ADD THESE TWO LINES BELOW THE [ZEND] line.
[Zend]
zend_extension=/home/sitename/ioncube/ioncube_loader_lin_5.2.so
zend_extension_ts=/home/sitename/ioncube/ioncube_loader_lin_5.2_ts.so
DO NOT ERASE zend_extension=/home/sitename/ioncube/ioncube_loader_lin.so lines, just leave them alone!!!
Step 5 - Rename the php.ini.default to php.ini
Open your AOM site and see if all is working. You may have to clear cache by using ctrl-f5 to refresh the page.
NOTE: if your server is using PHP 5 Single this php.ini file will work for all subdirectories of Public_html. If not you may have to copy the php.ini file to each subdirectory of the AOM cart.