I would like to share how I finally got it to worked for me with the help of the Support Desk (guys - thanks for the patience) and sXi, who put me on the right track finally.
Many of the DH wiki articles on these matters are outdated as they still refer to previous DH server setup.
In particular http://wiki.dreamhost.com/PHP.ini refers to php4, now php5 is standard & http://wiki.dreamhost.com/IonCube_Loader refers wrongly to ioncube loader package x86_32, whereas DH servers apparently switched to the x64 some time ago (never knew that till yesterday…thanks sXi)
- For customization of php, I choose not to do a “custom php installation”, as I for one, being a noobie, feel not able to maintain updates to the php package manually and choose therefore the “custom php.ini”, which still references the DH standard php package and principally still takes advantage of the php updates made by the nice folks of DH.
I could not get the outline method of using a php-wrapper to work - phpinfo.php could not work then. So I adapted the method outline here (http://discussion.dreamhost.com/showflat.pl?Board=forum_troubleshooting&Number=110517&page=0&view=collapsed&sb=5&o=14&vc=1) to reflect DH upgrade to php5, which mainly are:
cp /dh/cgi-system/php5.cgi ~/[your website directory]/cgi-bin/php5.cgi (using SSH) plus the correct php5.ini from DH!
Then I added the following to the end of .htaccess in the domain directory, where I use custom php.ini & ioncube loader
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php5.cgi
Make sure that you correctly name and transfer the .htaccess to domain directory in question (I messed up on that one initially). DH is hiding .htaccess by default, so in SSH you may use ls - la to check whether it is there, most FTP programs provide a switch to access “invisible” files which is also -la
- IonCube: First download ioncube_loaders_lin_x86-64.tar.bz2 (again, you would need the …-64 version of loader) directly from Ioncube (do not use the direct link in the wiki article!), then follow the rest the installation instructions (http://wiki.dreamhost.com/IonCube_Loader)
Apparently the example in that wiki page starting with [soap] is rather that - an example of user who wrote the wiki article.
You need to reference the loader in your (custom php.ini) file as the 1st zend extension like so:
zend_extension="/home/username/domain/(sub-domain - if used)/ioncube/ioncube_loader_lin_5.2.so"
Don’t add suhosin.so
In my case I left the two zend extensions that are part of the original php.ini (v5), namely ZendExtensionManager.so and ZendOptimizer.so, which according to phpinfo are loaded without conflict - the wiki says to disable all other zend extensions…
So now I am ready to install the extension that actually requires ioncube
Hope this helps some of you