Monday, April 21, 2014

a fatal error or timeout occurred while processing this directive file error - menu/root.tmpl not found WHM Cpanel

If you are getting the error below while trying to access your WHM follow the steps below to resolve the issue.

==========
[a fatal error or timeout occurred while processing this directive]file error - menu/root.tmpl: not found
==========
Restart your Cpanel service cpanel restart check RAM and Hard-Disk consumption if all is OK. 

Then the issue is that /usr/local/cpanel/whostmgr/docroot directory is empty, which is causing the WHM to fail, since it gets some of it's files from there. 

To resolve the issue you should update the WHM/Cpanel as WHM/Cpanel update should add the files back to update the Cpanel login to your server as root user and run the command below. 
  • /scripts/upcp --force
If you are facing issue like you are running out of disk space or you cannot update the Cpanel you can copy these files from the server which has working WHM to your server Just make sure you copy all the files from the location  /usr/local/cpanel/whostmgr/docroot of working WHM server to your server with the same ownership and permission in the same location for doing so use command below to rsync docroot from the server which has working WHM.
  • rsync -avHe ssh --owner --group --perms --progress /usr/local/cpanel/whostmgr/docroot/  root@127.0.0.1:/usr/local/cpanel/whostmgr/docroot/
*Note Replace 127.0.0.1 with the server IP in which docroot is missing due to which WHM is not working.

 Once you are done with rsync then restart the cpanel.
  • service cpanel restart
You are ready to go this should resolve your issue.

No comments:

Post a Comment

Do Write about the Blog and Welcome to the world where open source is every thing :-)