When we use cPanel to upload and download files from a domain, FTP can be a very practical and simple option, as this panel is pre-configured for its use by default.
In this article, we will show you how to enable and configure it for use.
Enable FTP
First, go to the WHM panel to activate FTP on the server. You can do this by visiting the following link: https://Public_IP:2087/. Once there, use the search bar on the left side of the panel to look for FTP and navigate to FTP Server Selection:
Now you can choose which type of server you want. In our case, we will use ProFTPD, although Pure-FTPd can also be used without any issues.
Create FTP Users
At this point, you can now go to your domain and create an FTP user. To do this, go to https://Public_IP:2083/
Once inside the domain user panel, you will see the option for FTP Accounts.
We will add the user for access. In the **Directory** field at the bottom, specify the exact location where you want to restrict the user (by default, it creates a system FTP user with root-level access).
By default, the server creates the server name in the following format: ftp.domain (if you use the hostname of the server, it will not work with ftp.dnshostclouding, although you could access it directly with the server name).
Now you can use FTP in active mode.
Configure Passive Mode
To do this, you will need to Access cPanel via SSH and use the following commands:
# echo "PassivePorts: 49152 49160" >> /var/cpanel/conf/proftpd/local
# /usr/local/cpanel/scripts/setupftpserver proftpd --force
In our case, we use ports 49152-49160, but any range between 49152-65534 can be used.
Note: You must open ports 49152 and 49160 in the client panel firewall.
Now you will be able to access your server via FTP in passive mode.
Remember, if you have any questions about this or any other issue related to your servers in Clouding, do not hesitate to write to soporte@clouding.io We are here to help you, feel free to ask us!