Openfire on CentOs/ WHM /Cpanel

I installed it fine using the rpm version, it also starts fine and everything works. However, every time I start openfire it clashes with whm/cpanel - one or the other does not work, I have to shutdown one service. I searched around and changed the http binding for Openfire to another port, that seemed to have worked but later it somewhat reverted back.

Does anyone know WHAT to change in Openfire for it not to clash with whm/cpanel? Must be some ports that are used that they both use.

Any help appreicated.