Increasing the number of filelistings in pureftpd
By default in cPanel the limits number of files and sub directory trees is 2,000 files till 8 levels.
If you have a large amount of files to be listed (more than 2000) you need to make some changes in the pure-ftpd’s configuration file.
Following are the steps for the same.
1) Login to the server as root.
2) Open the configuration file for pure-ftpd.
[root@server~]# vi /etc/pure-ftpd.conf
3) Locate the line which says :
LimitRecursion 2000 8
This is ‘ls’ recursion limits. The first argument is the maximum number of files to be displayed and the second one is the max subdirectories depth.
4) Edit the mentioned line to the limits as needed. For Eg I would like to list 3000 files to a subdirectory depth of 6 the setting will be as follows:
LimitRecursion 3000 6
5) Now just restart the pure-ftpd service on the server.
[root@server~]# /etc/init.d/pure-ftpd restart
Now you can view the difference in listing.