Unable to create FTP account from Cpanel and it disappear in cpanel as well, if you try to create it with selecting "unlimited" it show creation message but disappear in Cpanel and if you create it with assigning particular quota , it shows below Error message: :
"Failed to determine FTP account test directory"
(Assume that we are creating test FTP user )
On server it shows error log as below :
root@server [~]# tail -f /usr/local/cpanel/logs/error_log
2011-05-15 01:14:49 +0100] warn [Cpanel::Ftp] Failed to determine FTP account test directory. at /usr/local/cpanel/Cpanel/Ftp.pm line 639
Cpanel::Ftp::ftpquota('test', 10) called at /usr/local/cpanel/Cpanel/Ftp.pm line 179
Cpanel::Ftp::addftp('test', 'UcpJ&w9;*)Hd', 'public_html/test', 10, 1, 'public_html/test', 1) called at /usr/local/cpanel/Cpanel/Ftp.pm line 200
Cpanel::Ftp::api2_addftp('quota', 10, 'pass', 'UcpJ&w9;*)Hd', 'cache_fix', 1305418491152, 'homedir', 'public_html/test', 'user', 'test') called at (eval 5) line 1
eval '$dataref = [Cpanel::Ftp::api2_addftp(%{$rCFG})];' called at /usr/local/cpanel/Cpanel/Api2/Exec.pm line 84
Cpanel::Api2::Exec::api2_exec('Ftp', 'addftp', HASH(0x9c2c044), HASH(0x9c2bb20)) called at cpanel line 876
main::docpanelaction(HASH(0x9c2bb74)) called at cpanel line 4984
main::run_fast_json_mode() called at cpanel line 413
================================================== ============
Why it happens?
while creating FTP user account from Cpanel, default FTP user entry get save in below 2 files:
root@server [~]# cat /etc/proftpd/passwd.vhosts
test+userogix.com:$1$mOYf9aex$UUYlAYydFYxyqvlLedeJ B1:500:500:user:/home/user/public_html/test:/bin/ftpsh
root@server [~]# cat /etc/proftpd/test
test:$1$mOYf9aex$UUYlAYydFYxyqvlLedeJB1:500:500:us er:/home/user/public_html/test:/bin/ftpsh
but, when entry saved in /etc/proftpd/passwd.vhosts but not in etc/proftpd/test then above problem appear.
================================================== ============
Resolution :
first execute the below script :
/scripts/ftpupdate
then,
/scripts/restartsrv_pureftpd
then check /etc/cpupdate.conf, to verify : "FTPUP=inherit" entry, its as below :
CPANEL=manual
FTPUP=inherit
RPMUP=daily
SARULESUP=daily
SYSUP=daily
after it done execute upcp :
/scripts/ftpup --force
Done..