If you install cPanel & WHM follow by the step in documentation but still experience the problem. You can find out more the solution here
https://documentation.cpanel.net/display/ALD/Installation+Guide+-+Troubleshoot+Your+Installation