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.

Urgent - Suspend all accounts

Discussion in 'General Discussion' started by ModServ, Jan 5, 2008.

  1. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Hi all,

    I want to transfer all my account to another server,

    How can i suspend all my accounts one time.

    Note : I have more than 24 Resellers and 240 Accounts, So suspend all reseller accounts won't be good to use.

    If there's no way to suspend all accounts at one time.

    Is there a way to stop all accounts by a click to transfer them to another server.

    Don't say stop apache or mysql.

    Stopping apache. It will start again by cPanel.
    Stopping MySQL. I will take a backup, so when mysql is down, the backup won't take DBs.

    Thanks,
     
  2. astopy

    astopy Well-Known Member

    Joined:
    Apr 3, 2003
    Messages:
    165
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Stop chkservd, then stop apache and cPanel won't restart it. Also stop exim, FTP, etc. but as you said, leave mySQL running.

    Or, to suspend all accounts:
    Code:
    for user in /var/cpanel/users
    do
    /scripts/suspendacct $user
    done
     
  3. ModServ

    ModServ Well-Known Member

    Joined:
    Oct 17, 2006
    Messages:
    332
    Likes Received:
    5
    Trophy Points:
    18
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    So many thanks,

    Have a nice time.
     
Loading...

Share This Page