1.download Ioncube via
wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz
2. unzip
tar zxvf ioncube_loaders_lin_x86.tar.gz
3.add below in php.ini,it should be ahead of any other *.so
zend_extension = /usr/local/ioncube/ioncube_loader_lin_5.2.so
4.restart apache
******************************************************************
PS:
5.if appear error "ioncube_loader_lin_5.4.so: undefined symbol: executor_globals",rename ioncube_loader_lin_5.4_ts.so to ioncube_loader_lin_5.4.so instead.