After upgrading Cpanel server, i got following error when rebuilding httpd.conf
root@server20 [~]# /scripts/rebuildhttpdconf info [rebuildhttpdconf] Missing owner for domain server20.hostonnet.com, force lookup to root Built /usr/local/apache/conf/httpd.conf OK root@server20 [~]#
server20.hostonnet.com is the hostname for the server.
To fix, you need to edit the file
At the end of the file. Once edited, file will look like
root@server20 [~]# cat /var/cpanel/userdata/nobody/server20.hostonnet.com --- documentroot: /usr/local/apache/htdocs group: nobody ifmodulemodsuphpc: group: nobody ip: "*" phpopenbasedirprotect: 1 port: 80 serveradmin: firstname.lastname@example.org serveralias: www.server20.hostonnet.com servername: server20.hostonnet.com usecanonicalname: 'Off' user: nobody userdirprotect: '' owner: nobody root@server20 [~]#
And rebuildhttpdconf worked perfectly.
root@server20 [~]# /scripts/rebuildhttpdconf Built /usr/local/apache/conf/httpd.conf OK root@server20 [~]#