1) Via WHM
Log into the WHM by going to your servers IP followed by /whm or :2087 (ex: http://192.168.1.1:2087/)
On the left hand side click the ‘Tweak Settings’ link
Click the PHP tab on the right hand side
Find the configurable option labeled ‘cPanel PHP loader’ and check the ioncube checkbox
2) Via SSH
For this you need to SSH your server using SSH Terminal or any other third party application such as Putty or SSH client.
/scripts/phpextensionmgr install IonCubeLoader