Change FTP port in Backup.

Discussion in 'Installation/Configuration' started by Buzzen, Feb 16, 2008.

  1. Buzzen

    Buzzen New Member

    In admin backup function, a user must enter the Ftp-Server, Path, Username and Password but there is no option to modify the port.

    I want to backup to a server on a private port.

    I have tried many formats but only receive this error "The name of the FTP server contains invalid characters."

    Question is, how do I change the default port in the backup function to connect to the port our secure server is listening on??
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You will have to change it in the source code of the file /home/admispconfig/ispconfig/web/tools/tools/backup/backup.php

    by changing the line 168 from:

    $conn_id = @ftp_connect("$ftp_server");


    $conn_id = @ftp_connect("$ftp_server",1234);

    were 1234 is the number of the port.
  3. Buzzen

    Buzzen New Member

    Thanks very much Till (Y)

Share This Page