It may happen on a cPanel VPS that using FTP is very slow. This problem occurs if the configured ports for the passive FTP connections are incomplete / incorrect. You can solve this by adjusting the /etc/pure-ftpd.conf file.
- Follow the steps in this article as a root user or user with sudo rights.
- As of cPanel v86 FTP is disabled for security reasons, see cPanel's announcement. Instead, we recommend using SFTP.
Step 1
Open your pure-ftpd config file:
nano /etc/pure-ftpd.conf
Are you not using our images for cPanel, or using an older installation? Your configuration may than be in:
nano /etc/pure-ftpd/pure-ftpd.conf
nano /etc/pure-ftpd/pure-ftpd-mysql.conf
Step 2
Scroll to the variable PassivePortRange and set this value to:
PassivePortRange 30000 50000
Step 3
Restart PureFTPD and process the changes with one of the following commands:
systemctl restart pure-ftpd
Step 4
Check that range 30000 to 50000 in your firewall is open with the command:
cat
You should see the following line:
<port protocol="tcp" port="30000-50000"/>
When the ports in your firewall and pureftpd match, your FTP connection will work properly.
Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.