For a client, in whm – cpanel after uploading all files to the root I got a confusing redirection which goes to /cgi-sys/defaultwebpage.cgi when I go to the domain name.
The page showed the message “Cpanel is successfully installed” etc…
Here is the solution to resolve the issue of redirection.
Edit httpd.conf . In the server there is Apache Configuration –> Include Editor –> post virtual host include
<VirtualHost XXX.XX.XXX.XXX:80> ServerName www.yourdomain.com DocumentRoot /home/yourdom/public_html ServerAdmin email@example.com UserDir disable </VirtualHost>
XXX.XX.XXX.XXX – should be replaced by your ip address.
yourdom – has to be replaced by your domain name.
Then restart Apache.
It should remove the redirection.