MediaWiki are in some centos repos. Which is why it's very easy.
Personally, I would wait till the next version of sme/centos is released -which should be shortly. Centos 5 is already in beta version and sme will follow shortly. This has php5 among other upgrades. this will allow the most recent versions of mediawiki to be installed easily.