If your websites are displaying the defaultwebpage.cgi page instead of the correct website content, the issue is often caused by outdated user domain mappings, corrupted userdata cache, or an invalid Apache configuration.
To resolve the problem, log in to your server as the root user via SSH and run the following commands:
/usr/local/cpanel/bin/fix_userdata_perms
/scripts/updateuserdomains
/scripts/updateuserdatacache --force
mv -f /etc/apache2/conf/httpd.conf{,.bk}
/scripts/rebuildhttpdconf
/scripts/restartsrv_httpd
These commands perform the following actions:
-
Repair cPanel userdata file permissions.
-
Rebuild the user-to-domain mapping database.
-
Force a rebuild of the cPanel userdata cache.
-
Back up the existing Apache configuration file.
-
Regenerate the Apache configuration from cPanel account data.
-
Restart Apache to apply the updated configuration.
Once the commands have completed successfully, verify that the affected domains are loading the correct website instead of the defaultwebpage.cgi page.
