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