CentOS7 Unable to change FTP port

matt1206

Well-Known Member
Dec 20, 2011
60
10
58
cPanel Access Level
Root Administrator
I've trying to set my own FTP port, and changing the value in /etc/pure-ftpd.conf doesn't survive a service restart.

Code:
Bind {myport}
I've changed it many times on CentOS6, but it's not changing on my CentOS7 server.

Code:
[email protected] [/etc]# netstat -nltp | grep ":21"
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      15342/pure-ftpd (SE
tcp6       0      0 :::21                   :::*                    LISTEN      15342/pure-ftpd (SE
[email protected] [/etc]#
Is there a default config which is being applied at service restart?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

You can edit the following file to ensure the changes you make are permanent:

/var/cpanel/conf/pureftpd/main

Run the following command after making the changes:

Code:
/usr/local/cpanel/scripts/setupftpserverpure-ftpd --force
Thank you.
 
  • Like
Reactions: matt1206

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
You are very welcome. Can you confirm that addressed the issue?

Thank you.