Skip to main content

How to fix “PHP Warning: ftp_login(): Login authentication failed”

Comments

6 comments

  • GOT
    I don't know anything about Open Game Panel, but FTP in general runs on port 21 not port 80. I would try logging in to port 21.
    0
  • grof
    I don't know anything about Open Game Panel, but FTP in general runs on port 21 not port 80. I would try logging in to port 21.

    Hi. Thanks for your answer, 80 is the username the port is 21, default. When i create server then agent give the next username, 80, 81, 82... so the problem is php warning
    0
  • GOT
    I don't think your software is going to create users that you could use with ftp.
    0
  • grof
    I don't think your software is going to create users that you could use with ftp.

    Before centos i use ubuntu, now i change to centos only beacuse cPanel. When i install on ubuntu Open Game Panel i didnt have problem with ftp, so when i create the game server, ftp work without any problem. When i create server then automatically server create home for server. ex: home/ogp_agent/OGP_User_Files/1. This number 1 is also username for ftp, and i dont need to change nothing but even if change ftp work, and now on centos i cant change no username no password, when i try to change something, then i see this error: Error ocurred on remote server, FTP password can not be changed.
    The logs says this error: Europe/Paris] PHP Warning: ftp_login(): Login authentication failed in /home/ubc/public_html/panel/modules/ftp/includes/filesystem.inc.php on line 61
    and this is a line of error 61 on include/filesystem.inc.php: 60.// Login with username and password 61. $login_result = ftp_login($conn_id, $net2ftp_globals["username">, $net2ftp_password); 62. if ($login_result == false) { 63. $errormessage = __("Unable to login to FTP server %1\$s with username %2\$s.

    Are you sure your username and password are correct? Please contact your ISP helpdesk or system administrator for help.
    ", $net2ftp_globals["ftpserver">, $net2ftp_globals["username">); 64. setErrorVars(false, $errormessage, debug_backtrace(), __FILE__, __LINE__); 65. return false; 66. }

    0
  • grof
    60.// Login with username and password 61. $login_result = ftp_login($conn_id, $net2ftp_globals["username">, $net2ftp_password); 62. if ($login_result == false) { 63. $errormessage = __("Unable to login to FTP server %1\$s with username %2\$s.

    Are you sure your username and password are correct? Please contact your ISP helpdesk or system administrator for help.
    ", $net2ftp_globals["ftpserver">, $net2ftp_globals["username">); 64. setErrorVars(false, $errormessage, debug_backtrace(), __FILE__, __LINE__); 65. return false; 66. }

    0
  • cPanelLauren
    Hello @grof Your profile indicates you're a website owner and if you don't have root access to the server I'd suggest contacting your provider to find out if this is a configuration that you're able to implement on their servers and for further assistance with it.
    0

Please sign in to leave a comment.