CumulusClips - Forums
[Solved] Infamous "unable to connect to the ftp server"
Running on Centos7, I've confirmed apache is owner of all files/directories. I've tried using localhost and 127.0.0.1 with no luck. I can ssh to the box and then ftp to both localhost and 127.0.0.1. Not sure what to try next.
This discussion has been closed.
Comments
getsebool httpd_can_network_connect
If you get off, 0, or no Then turn it on with this command and reboot your server:
setsebool -P httpd_can_network_connect=1
You may need root permissions to run that command. Then try again with both 127.0.0.1 and localhost. If both fail, then try disabling SELinux altogether to see if that's causing it. Open the file /etc/selinux/config and set selinux=disabled, save, reboot and try again.