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.

Need help with Manually Rearranging an account

Discussion in 'cPanel Developers' started by proogammer, Dec 9, 2013.

  1. proogammer

    proogammer Member

    Joined:
    Dec 19, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,

    I need to know how to manually rearrange an account. There are some of the steps that I already know, but I am getting 500 Internal Error and, under list accounts, WHM shows that the account is in /oldhome/. Even though it has been successfully moved
    Code:
    move data from /oldhome/USERNAME to /newhome/USERNAME
    
    replace /oldhome/ with /newhome/ in /var/cpanel/userdata/USERNAME/*
    replace /oldhome/ with /newhome/ in /etc/proftpd/USERNAME
    replace /oldhome/USERNAME with /newhome/USERNAME in /etc/passwd
    
    rm -rf /oldhome/USERNAME
    ln -s /newhome/USERNAME /oldhome/USERNAME
    replace /oldhome/USERNAME with /newhome/USERNAME in /newhome/USERNAME/etc/*/passwd
    Following is the error that is logged

    Changing the php Handler from suPHP to DSO fixes the issue but I want to keep it to suPHP.

    I have found instances of "/oldhome/USERNAME:..." in httpd.conf but changing them in httpd.conf is not the right in cPanel I guess.

    DO I have to alter httpd.conf as-well?

    I need to know what other files do I have to alter in-order to manually rearrange an account?

    Thanks!
     
    #1 proogammer, Dec 9, 2013
    Last edited: Dec 10, 2013
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's important to note that there is no command line equivalent to the option to rearrange an account in WHM. Is there a particular reason you prefer to complete this manually instead of through Web Host Manager? Some users prefer to backup the account, terminate it, and then restore it on the new partition.

    Thank you.
     
  3. proogammer

    proogammer Member

    Joined:
    Dec 19, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    There are more than 100 accounts that I have to move to a new partition. My main problem is 500 internal error, which is due to suPHP and I am not sure how to fix it. I am still googling it
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You can likely determine the cause of the 500 error message by checking the /usr/local/apache/logs/error_log file. I suggest opening a new thread for that issue so it does not interfere with your rearrange account question.

    Thank you.
     
Loading...

Share This Page