Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    156
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. katz_global

    katz_global Well-Known Member
    PartnerNOC

    Joined:
    Oct 18, 2003
    Messages:
    69
    Likes Received:
    0
    Trophy Points:
    156
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,470
    Likes Received:
    21
    Trophy Points:
    463
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice