Resolving defaultwebpage.cgi Issues in cPanel/WHM

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.

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...

How to Secure a cPanel/WHM Web Server

Here are a few basic steps that you should keep in mind for keeping a server secure. 1) Strong...