You can compile apache on your linux cpanel server by using easyapache script.
[root@server~]#/scripts/easyapache
Moreover if you are new to the linux shell commands you can recomplie apache via WHM from the following path :
Main >> Software >> EasyApache (Apache Update)
Then start customizing based on profile. Keep apache and PHP default setting as it is then click on "Exhaustive Option List" make sure you have checked XML-RPC then click build. It will take few minutes to complete the easyapache process.
Make a file on your site called phpinfo.php and inside it put this:
I would like to recommend you to build recompile apache with the help of linux expertise.