Do you have another server to compare with?
If so, you could start with a command like this
cd /var
find . -ls | awk '{printf "chown %s:%s %s\n",$5,$6,$11}' > /tmp/mychown
this will create a file in /tmp called mychown that has lines like
chown root:root ./cpanel/zonetemplates/simple
The file will be based on your other servers ownerships