Just registered and came here to complain how absurd this issue is for God sake, it was easier for me to learn how to setup LAMP stack and install Cpanel from SSH, with ZERO issues, then try to fix this issue, while using OFFICIAL Cpanel Droplet on DigitalOcean.:
cPanel & WHM by cPanel, LLC VERSION 188.8.131.52 OS CentOS 7.6
Every single solution I tried on this post did not work, and this thread was started 10 years ago, cmon guys.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.