1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk built-in FTP-server configuration

Discussion in 'Plesk 11.x for Linux' started by BS1234, Aug 9, 2012.

  1. BS1234

    BS1234 Guest

    0
     
    hi all,

    I'm new to Plesk so my question is hopefully very easy to answer.

    I just installed Plesk 11.0.9 Update #8 on a CentOS Linux Server and found a new FTP-server running and listening on port 21. I wanted to deactivate it or at least change the port number to anything else. But in the config file /etc/xinetd.d/ftp_psa there is a comment:

    #DO NOT MODIFY THIS FILE BECAUSE IT WAS GENERATED AUTOMATICALLY,
    #SO ALL YOUR CHANGES WILL BE LOST AFTER YOU UPGRADE PARALLELS PLESK PANEL.

    So I can't deactivate the FTP-server with the line "disable = yes" because the default file is restored after a while (I can't pinpoint the event when it happened). In the Plesk frontend I can't see any possibility to deactivate the server or change the port.

    In the file above, there is mentioned another config file
    "server_args = -c /etc/proftpd.conf" but changes in that file are ignored for whatever reason. There I changed the port number but without success. It's still listening on 21 even if the file says otherwise.

    Can you help me here?

    Thanks in advance.

    -BS1234
     
  2. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Edit /etc/proftpd.conf and change the port from 21 to another port
    also edit file /etc/services and make following changes

    # 21 is registered to ftp, but also used by fsp
    ftp XXX/tcp
    ftp XXX/udp fsp fspd

    Where XXX is new ftp port.
     
    Xavier12 likes this.
  3. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    BS1234, to addon onto Igor's either through the plesk firewall module or if you are running your own other firewall module, ensure in it to BLOCK port 21. For Plesk its easy, just go to extensions -> click on firewall -> then click the button of FTP to disable FTP.

    Lastly, don't forget to run

    /etc/init.d/xinetd restart

    To activate the new firewall port ...
     
  4. BS1234

    BS1234 Guest

    0
     
    thank you very much for your answers.

    it works now - i didn't change the /etc/services before.. :)

    but still, how long will the changes be effective before plesk will change /etc/xinetd.d/ftp_psa back to default ? or how can i prevent plesk from doing that?
     
  5. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    I don't think plesk changing /etc/xinetd.d/ftp_psa would affect your settings ...
     
  6. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    I just noticed that after these settings, you might not be able to run backups to an FTP Repository.
     
  7. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    Yes, you are correct.
     
  8. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    Any future plans to make this possible?
     
  9. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    We have already corresponding feature request.
     
  10. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    OK, that is great ...looking forward to it! And thanks for clearing it up ...
     
  11. IgorG

    IgorG Forums Analyst Staff Member

    49
    24%
    Joined:
    Oct 27, 2009
    Messages:
    24,547
    Likes Received:
    1,240
    Location:
    Novosibirsk, Russia
    The whole Plesk Service Team takes off hats to you for your great help on this forum!
     
  12. Xavier12

    Xavier12 Regular Pleskian

    16
    85%
    Joined:
    Oct 21, 2014
    Messages:
    264
    Likes Received:
    4
    Hey guys,

    I can confirm that IgorG's method works regarding changing the ports. Just make sure your FTP personal repo has IPADDRESS: PORT (Without the space between the semicolon and port) and that your backup location matches on your server httpdocs/FOLDERNAME or even httpdocs (which I wouldnt recommend for organizational purposes) Just make sure your folder already exists on the server that you are backing up to. I am on Plesk 12 btw

    :D
     
Loading...