Fix for “Missing owner for domain X, force lookup to root”

2.5/5 - (2 votes)

On recent cPanel versions, rebuilding the Apache conf returns the following non-fatal error:


root@savannah [~]# /scripts/rebuildhttpdconf
info [rebuildhttpdconf] Missing owner for domain savannah.tcaserversolutions.com, force lookup to root
Built /usr/local/apache/conf/httpd.conf OK

 

The error does not adversely effect the way the httpd.conf file is built, but the presence of the unnecessary info message can be annoying.  And by “can be annoying”, I mean “is annoying”.

To fix this, you will need to edit the main vhost template for the ‘nobody’ user, which owns the primary hostname of your server.  Edit /var/cpanel/userdata/nobody/$hostname and add this line to the bottom of the file:


owner: 'nobody'

 

Then run /scripts/rebuildhttpdconf again and the “error” should be gone.

 

This fix was affectionately provided by Mohammed Naser from Vexxhost.

 

 

2 Comments

  1. Pingback: ConfigServer ModSecurity Control cPanel error | Web Admin Grr

  2. Sergio Reply

    Hi Vanessa, thanks for all the sharing.
    Would you know, please, a way of bypassing the “Cannot Read Zone File” while using the api 2 ( xmlapi-php) ?
    In our context, it is not related to the “Advanced DNS Zone Edit” feature/package (nor via whm:2087 root whilst still at the api )
    in fact, it is only one entity ( reseller, all permissions granted ), 30k+ domains…
    before we go and develop a from-scratch apache-fetching solution, we wonder if there is a way to understand
    –which– validation is happening ??
    many thanks,
    s

Leave a Reply

Your email address will not be published. Required fields are marked *

Log in