Well fortunatly I found the answer to my own question

. Posting it here in case someone else searches for it.
I had to add the RPMforge repository to YUM, with Yum priorities plugin installed.
You can follow the instructions here to do that in centos:
http://wiki.centos.org/AdditionalRes...ies%2FRPMForge
After I followed those instructions I could then just type:
yum install php-zend-optimizer php-ioncube-loader
To install both zend optimizer and ioncube loader.
Then, just reset apache:
cd /etc/rc.d/init.d
./httpd restart
Now go to a test phpinfo page and you will see the zend engine credits, mentioning both optimizer and ioncube loader installed.