Need help with Manually Rearranging an account

proogammer

Member
Dec 19, 2011
23
0
51
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

SoftException in Application.cpp:602: Could not execute script "/newhome/USERNAME/public_html/index.php"
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!
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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.
 

proogammer

Member
Dec 19, 2011
23
0
51
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
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
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.