• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Stop FTP Service

LloydD

Basic Pleskian
Hi guys,
how do I stop the FTP service, I have tried

/etc/init.d/proftpd stop
and
/etc/init.d/psa-proftpd stop

but neither worked.
I am using Ubuntu 10.04 LTS x64 and Plesk 10.0.1.
Thanks in advance for any help
Regards

Lloyd
 
In file /etc/xinetd.d/ftp_psa change

disable = no

to

disable = yes

and restart xinetd sevice.
 
How would I do this through SSH please, I have never edited a file through SSH. Or can I download the file edit it and upload it again without breaking anything?
Thanks in advance for your help
Kind regards

Lloyd
 
Login to server via ssh and edit file with vi editor, for example.
 
I need to start the proftp service again so I have change the above back but it's not running after a restart of xinetd.
How do I start it again.
This is urgent as I need to set up the ftp for a developer.
Thanks in advance for any help
Kind regards

Lloyd
 
Last edited:
Do you have following content of /etc/xinetd.d/ftp_psa ?

service ftp
{
disable = no
socket_type = stream
protocol = tcp
wait = no
user = root
instances = UNLIMITED
server = /usr/sbin/in.proftpd
server_args = -c /etc/proftpd.conf
}

Did you check

# lsof -i tcp:21

after

# /etc/init.d/xinetd restart
 
What sort of messages about xinetd service and restarting in /var/log/messages log file?
 
Hi again,
no there's absolutly nothing in the messages file just ..

Apr 6 07:24:40 host -- MARK --
Apr 6 07:44:40 host -- MARK --
Apr 6 08:04:40 host -- MARK --
Apr 6 08:24:40 host -- MARK --
Apr 6 08:44:40 host -- MARK --
Apr 6 09:04:40 host -- MARK --
Apr 6 09:24:40 host -- MARK --
Apr 6 09:44:40 host -- MARK --
Apr 6 10:04:40 host -- MARK --

Thanks in advance for any help
Kind regards

Lloyd
 
Sorted - when I had disabled it I had used PPP File Manager to edit the file so I had to run dos2unix on the psa_ftp file and restart xinetd and it was fine.

All together "D'OH"
 
To turn off (i.e. disable) ftp in Plesk, I just did:

Code:
chkconfig ftp_psa off

That made the above change in the config file and restarted xinetd for me, without having to do either manually.

Is there a reason why the chkconfig method is a bad idea?

TN
 
In file /etc/xinetd.d/ftp_psa change

disable = no

to

disable = yes

and restart xinetd sevice.

That file has a header that says this:

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

So is there a new way to do this now?
 
You can try to use:

[root@ppu12-5 ~]# chkconfig --list | grep ftp_psa
ftp_psa: on

[root@ppu12-5 ~]# chkconfig ftp_psa off

[root@ppu12-5 ~]# chkconfig --list | grep ftp_psa
ftp_psa: off
 
Back
Top