Which partition is used for new accounts?
Hey guys
I'm using some custom made migration scripts and since my server has /home and /home2 I need to know beforehand which of these partitions will be used for the new account.
I was trying to read the Perl source code (/usr/local/cpanel/Whostmgr) to understand the behavior but I'm afraid that the Accounts::Create module is unshipped, so I couldn't figure it out.
So before just guessing this is simple matter of available space I would like to ask you guys.
Thank you in advance
zs
-
Go to WHM -> Server Configuration -> Basic Webhost Maneger Setup -> Basic Config In your case if you have the default settings and /home2 has more space than /home then accounts will be created there. 0 -
@quietFinn is correct this is the best way to do this. Let us know if you're still experiencing issues once this is configured or if this doesn't resolve your issue. 0 -
hi I thought there was a parameter to /script/wwwacct, to create a host on a specific partition, and that all other hosting accounts continue to create on the default partition 0 -
Yes, and by default, cPanel/WHM will recognize /home2 and /home3 and so forth and automatically allocate new accounts to the partition with the most free disk space. This functionality can be customized in WHM -> Server Configuration -> Basic cPanel/WHM Setup under "Default Home Directory" and "Home Directory Prefix." 0 -
@jlucho - I'm not seeing a flag when I check just now: # /scripts/wwwacct --help Please use the following syntax: wwwacct0
Please sign in to leave a comment.
Comments
5 comments