HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Change FTP port in Backup. (http://www.howtoforge.com/forums/showthread.php?t=20453)

Buzzen 16th February 2008 01:11

Change FTP port in Backup.
 
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??

till 16th February 2008 10:13

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");

to

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

were 1234 is the number of the port.

Buzzen 16th February 2008 10:39

Thanks very much Till (Y)


All times are GMT +2. The time now is 22:17.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.