The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

domain list control file

Discussion in 'General Discussion' started by katz_global, Apr 13, 2006.

  1. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hosting from: Panama, Hong Kong, Singapore, Malays
    I lost a drive and we remounted it to old and retained everything but the /etc folder.

    When we replaced all the files, we cannot get the domains to appear in the domain list in WHM. What file(s) control that list and also, what file controlls where new sites are added?

    New sites get added to /old/home now rather than just /home.

    I have a good copy of the named.conf and httpd.conf file but something else is missing here and I am not sure what it is.
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
  3. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Hosting from: Panama, Hong Kong, Singapore, Malays
    Yes, thank you. I have already used that information. Problem is, the /etc partition is toast.

    I am sorta now working on recreating sites manually and then copying over files from home after. The ownership of the files and folders are toast and somehow have defaulted to their shadow number so I have to manually reset those.

    What is the command to chown a symlink?

    chown -h user.user fails.

    the www symlink is root.root at the moment.

    I also am now not able to start apache ssl after rebooting. Copying over from the ev1 info caused secondary issues.

    thank you
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If /etc/is toast you may be able to rebuild what you need:

    /scripts/updateuserdomains
    /scripts/mailperm
    /scripts/fullhordereset
    /scripts/fixeverything
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If /etc/is toast you may be able to rebuild what you need:

    /scripts/updateuserdomains
    /scripts/mailperm
    /scripts/fullhordereset
    /scripts/fixeverything


    To fix user permissions:

    Code:
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:$CPAccess /home/$CPAccess; done
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:mail /home/$CPAccess/etc /home/$CPAccess/mail; done
    for CPAccess in `ls -A /var/cpanel/users`; do chown -R $CPAccess:nobody /home/$CPAccess/public_html; done
    /scripts/chownpublichtmls
     
Loading...

Share This Page