WordPress FTP Error: “Failed to connect to FTP Server”

After two days of head banging, found out it’s the SELinux giving me the issues.

Usually i got a message from it saying what and why was blocked, provided with a command to enable the action that SELinux was preventing. Like when apache wasn’t able to write logs to my virtual host folder…
This time around i got no such message so it didn’t cross my mind it was SELinux-s fault.

I ended up turning SELinux off altogether as i saw CPannel doesn’t function with it being enabled (i intend to use CPannel or smth equivalent down the line).