Executing in an invalid environment for the supplied user

In WHM/Cpanel, the error

[box style=’error’]Executing in an invalid environment for the supplied userĀ [/box]

occurs when hosted site is using third party DNS and pointing to wrong IP (a working IP on your server but not the one where domain is hosted). You will need to either point the the domain to correct IP or change the IP in WHM to match the DNS.