Current time: 11-17-2024, 12:35 AM Hello There, Guest! (LoginRegister)


Post Reply 
Proftp Port change
Author Message
albatros Offline


Posts: 2
Joined: May 2008
Reputation: 0
Post: #1
Proftp Port change
I changed the port in /etc/proftpd/proftpd.conf to 32221.
In the file /etc/ispcp/proftp/proftp.conf i changed it too.
It work fine, i can access my ftp server via port 32221, various functions in the control panel are therefore not possible. e.g.:

1. When i want to edit the start directory for an ftp user it says that the dir can't be opened.
2. Also the tool filemanger (net2ftp; http://domain.tls/tools/filemanager/) doesnot work correctly.
I found a conclusion how to make the filemanager work, but it is very low:
Change /var/www/ispcp/gui/tools/filemanager/includes/filesystem.inc.php In the following way:
Code:
/*if ($net2ftp_globals["ftpserverport"] < 1 || $net2ftp_globals["ftpserverport"] > 65535 || $net2ftp_globals["ftpserverport"] == "") {*/ $net2ftp_globals["ftpserverporterport"] = 32221;// }
So it doesnot check the Port anymore, just set the port to 32221. IMHO not a good solution.[/code]
Where can i change the port of proftpd that everything fits together after changing?

Sorry my english is bad...

EDIT:
I found out: there is no need to "hack" the net2ftp-thing. just edit /var/www/ispcp/gui/tools/filemanager/settings_authorizations.inc.php
Code:
$net2ftp_settings["allowed_ftpserverport"] = "32221";
And everything works fine THERE, only there!
(This post was last modified: 05-10-2008 07:17 AM by albatros.)
05-10-2008 07:07 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)