Cpanel - FTP Limiting 2000 file listing in FTP client


Error:

In a cPanel server with pure-ftpd, when a directory contains more than 2000 files, On FTP Client like FileZilla, getting following error,

150 Accepted data connection
226-Options: -a -l
226 Output truncated to 2000 matches

Solution:

To correct this problem, edit pure-ftpd configuration file at /etc/pure-ftpd.conf and modify value of LimitRecursion, by default, it is set to 2000.

LimitRecursion 2000 8 <----- change this line to the following.

LimitRecursion 20000 8

LimitRecursion <-----'ls' recursion limits.
20000               <-----Maximum number of files to be displayed.
                      <-----Maximum subdirectories depth.


Now upto 20000 files will listed by FTP Client. To make these changes in effect, you have to restart pure-ftpd.


root@server [~]# /etc/init.d/pure-ftpd restart