I cannot connect or upload to the FTP service
FTP connection issues are almost always firewall related. You should triple check that ports 2121 and the range 50000-51000 is allowed in your firewall.
- Check status of MediaCP ftp service. If its running then 9/10 times its going to be a network related issue (inc. firewall)
mediacp status
- Try restarting the MediaCP ftp service:
mediacp restart ftp
- Run netstat to confirm that the ftp service is running and listening on port 2121. It might be required to install netstat first using yum install net-tools or apt install net-tools
netstat -tulpn | grep 2121
- If you are using ConfigServer or another Firewall try disabling it completely:
csf -x;
- Run proftpd in debug mode and watch for connection and errors:
a) Stop MediaCP FTP:mediacp stop ftp
b) Start proftpd in debug mode:
/usr/local/mediacp/proftpd/sbin/proftpd -nd6 -c /usr/local/mediacp/proftpd/etc/proftpd.conf
Please ensure the following ports are available on your server:
- 2121
- 50000 – 51000
You can check the status of the FTP service by running the following command in SSH:
/usr/local/mediacp/service status
FTP login username and password is not working
Please try to regenerate all FTP account logins using the following command in SSH:
/root/init --reset-ftp