Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Oct 2007
    Location
    Argentina
    Posts
    33

    Default Remove entire Viral Host?

    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. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by fedlerner View Post
    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.
    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. #3
    Member
    Join Date
    Oct 2007
    Location
    Argentina
    Posts
    33

    Default

    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.

Similar Threads & Tags
Similar threads

  1. Remove IPv6 Host
    By chrisbuk in forum Enkompass Discussions
    Replies: 0
    Last Post: 08-17-2011, 03:35 PM
  2. URGENT:remove remote mysql host???
    By aaronjw in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 12-02-2008, 10:55 AM
  3. Remove "host" from email user@host.domain.com
    By firekicker in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-07-2006, 10:22 AM
  4. remove POP account doesn't remove all files
    By spaceman in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-18-2003, 09:05 PM
  5. Remove additional MySQL access host
    By Sydney in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-24-2002, 09:52 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube