Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SPOSTARBUST_Widget_Class has a deprecated constructor in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 386

Deprecated: Function create_function() is deprecated in /home2/cptech/public_html/wp-content/plugins/spostarbust/index.php on line 611

Notice: The called constructor method for WP_Widget in SPOSTARBUST_Widget_Class is deprecated since version 4.3.0! Use
instead. in /home2/cptech/public_html/wp-includes/functions.php on line 4514
How to change Default FTP port on a cPanel Server

How to Change Default FTP Port on a cPanel Server

Change default FTP port for greater security for the server and to its contents, if the server is a shared one. Not only because the default port gives you a connection automatically and if they could guess the password, your content is in risk. So, I would suggesto to change the FTP port to a non standard one.

To Change default FTP port to which the FTP service listens to, we need SSH access.


Login to the server as root, and navigate to /etc

cd /etc
pico pure-ftpd.conf

Search for this line

# IP address/port to listen to (default=all IP and port 21).
# Bind,21

and change to the desired value , here, I am going to change it to 21001

# IP address/port to listen to (default=all IP and port 21).

If you want to allow specific IPs, you can enter them in line.


Now restart ftp server


You should make sure that traffic through the new port is allowed in firewall to get this operational.



If you are using proftpd then follow the steps below to Change default FTP port:

Login to ssh via root

Edit /etc/proftpd.conf and change:

Port 21


Port 21001

Now restart ftp server

Close Menu