FTP connection failed. Please help me.
$ftpServer = "xxxx.xxx"; //I have put the IP address
$username = "api";
$password = "api123";
$connId = @ftp_connect($ftpServer); - not Connecting
using FileZilla with above credential not working.But when passing port as 22, It's working in FileZilla.
But through $connId = @ftp_connect($ftpServer, 22); -- Not Connecting
I have done these in server chmod 777 -R directoryName Resources Folder adding api user to apache group /usr/sbin/usermod -a -G apache api