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.

Remove entire Viral Host?

Discussion in 'General Discussion' started by fedlerner, Oct 20, 2008.

  1. fedlerner

    fedlerner Active Member

    Joined:
    Oct 31, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    I work for a hosting company where we have lots of accounts on our servers. Sometimes when terminating accounts the httpd.conf doesn't get updated correctly, and we need to fix the problem manually.
    The problem is that the terminated user VH isn't removed from the Apache config file.
    Ex:
    Code:
    <VirtualHost *.*.*.*:80 >
    ServerName........
    ServerAlias..........
    .............
    (A common VirtualHost).

    Is there a script or a way so you can put for example: /scripts/removevh USER and it removes all the virtualhost instances for that user on the httpd.conf ?


    Thanks,
    Fed.
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If you are using the account termination functions provided by cPanel, then rebuilding the httpd.conf (e.g. /scripts/rebuildhttpdconf) should generate a file with the VHosts removed.

    That said, those VHosts should not remain, regardless. What is your full cPanel version number? How are you removing the accounts? What errors (if any) are reported during the removal process?
     
  3. fedlerner

    fedlerner Active Member

    Joined:
    Oct 31, 2007
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Argentina
    WHM 11.23.2 cPanel 11.23.6-R27225.

    This happens when removing accounts from WHM or SSH. If I'm removing many accounts, or (I think/assume) if while I'm removing an account another thing is happening on the server (Ex: Account being created, account being suspended, or if the server is with a bit high load)...
    No error is shown, all stuff shows as if it was done correctly.
     
Loading...

Share This Page