Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section FTP Server
  • Search

How to replace ProFTPD with vsftpd on a Debian or Ubuntu

Questions regarding the FTP Server
vsFTPd, ProFTPd
Post Reply
  • Print view
Advanced search
9 posts • Page 1 of 1
Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by Spheerys » Fri Apr 05, 2019 7:03 pm

Hi,

I have found this on the official doc : http://vestacp.com/docs/#how-to-replace ... ian-ubuntu
But I need to do the opposite : I have installed proftpd on VestaCP install but I can't easily get SSL/ secure connexion for my customer which don't know what is a ssh key for SFTP

I tried to reinsall vsftpd but I had error and I don't want to broke anithing more.

Can you please help me to insatll vsftpd properly ?
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by dreiggy » Tue Apr 09, 2019 8:44 pm

Hi,
I have changed proftpd to vsftpd on centos 7. I think you may try to do some reverse steps for debian/ubuntu...

1) Disable proftpd

Code: Select all

service proftpd stop
update-rc.d -f proftpd remove
2) Install software package

Code: Select all

apt-get install vsftpd
3) Download configuration (I'm not sure if configuration location on debian/ubuntu is correct)

Code: Select all

wget https://raw.githubusercontent.com/serghey-rodin/vesta/master/install/debian/9/vsftpd/vsftpd.conf -O /etc/vsftpd.conf
4) Change vesta settings

Code: Select all

sed -i "s/proftpd/vsftpd/" /usr/local/vesta/conf/vesta.conf
5) Restart vsftpd and vesta

Code: Select all

service vsftpd restart && service vesta restart
I've not tested this on debian/ubuntu. So you should try it by yourself ;) Good luck!

Additional bonus SSL/TLS enable tutorial: /viewtopic.php?f=44&t=18559
Last edited by dreiggy on Fri Apr 12, 2019 9:53 pm, edited 1 time in total.
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by Spheerys » Wed Apr 10, 2019 1:40 pm

Thanks it's look pretty good !
The point is I have a relativly undocumented error on the web during vsftpd insatllation :

Code: Select all

mkdir: cannot create directory ‘/srv/ftp’: Permission denied
And effectively, I can't create this directory even with root user.
I'm blocked and this point :(

I'm running Ubuntu 18.04
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by Spheerys » Wed Apr 10, 2019 2:28 pm

OK I finally install with succes by cleaning package and reinstall it :
cd /var/cache/apt/archives/
rm vsftpd_*.deb
apt-get clean
apt-get autoremove
apt-get update
apt-get install vsftpd
The service was masked :

Code: Select all

Failed to start vsftpd.service: Unit vsftpd.service is masked.
I unmask it :

Code: Select all

systemctl unmask vsftpd.service
and start it :

Code: Select all

systemctl start vsftpd.service
the status looks good :

Code: Select all

● vsftpd.service - LSB: Very secure FTP server
   Loaded: loaded (/etc/init.d/vsftpd; generated)
   Active: active (exited) since Wed 2019-04-10 16:08:32 CEST; 14s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 2790 ExecStart=/etc/init.d/vsftpd start (code=exited, status=0/SUCCESS)

avril 10 16:08:32 peace systemd[1]: Starting LSB: Very secure FTP server...
avril 10 16:08:32 peace systemd[1]: Started LSB: Very secure FTP server.
But on vestacp admin panel, the vsftpd service looks not started (it's in grey).

The command "lsof -i -n -P | grep ':21'" give me no result

If I restart vsftpd, on the syslog file I have :

Code: Select all

Apr 10 16:27:56 peace systemd[1]: Stopping LSB: Very secure FTP server...
Apr 10 16:27:56 peace systemd[1]: Stopped LSB: Very secure FTP server.
Apr 10 16:27:56 peace systemd[1]: Starting LSB: Very secure FTP server...
Apr 10 16:27:56 peace systemd[1]: Started LSB: Very secure FTP server.
Something going wrong, but what ???
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by dreiggy » Wed Apr 10, 2019 3:32 pm

Have you changed proftpd to vsftpd in vesta.conf?

Try check with this commands:

# netstat -tulpn | grep ':21'
# ps aux | grep vsftpd
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by Spheerys » Wed Apr 10, 2019 3:37 pm

Yes I changed it :

Code: Select all

cat /usr/local/vesta/conf/vesta.conf
WEB_SYSTEM='apache2'
WEB_RGROUPS='www-data'
WEB_PORT='8080'
WEB_SSL_PORT='8443'
WEB_SSL='mod_ssl'
PROXY_SYSTEM='nginx'
PROXY_PORT='80'
PROXY_SSL_PORT='443'
STATS_SYSTEM='webalizer,awstats'
FTP_SYSTEM='vsftpd'
MAIL_SYSTEM='exim4'
IMAP_SYSTEM='dovecot'
CRON_SYSTEM='cron'
FIREWALL_SYSTEM='iptables'
FIREWALL_EXTENSION='fail2ban'
BACKUP_SYSTEM='local'
LANGUAGE='fr'
VERSION='0.9.8'
DB_SYSTEM='mysql'
DISK_QUOTA='no'
BACKUP='/backups/vestacp'
The ps and the netstat give me no answer
Strange didn't it ?
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by dreiggy » Fri Apr 12, 2019 9:52 pm

Try check vsftpd.log file in /var/log directory. Maybe here will be some errors.
Top

Spheerys
Posts: 225
Joined: Tue Dec 29, 2015 12:36 pm

Os: Debian 7x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by Spheerys » Sat Apr 13, 2019 6:51 am

This log stay empty even with good parameters on the conf file.
It is another clue about the problem...
Top

dreiggy
Posts: 154
Joined: Thu May 17, 2018 8:05 pm
Contact:
Contact dreiggy
Skype

Os: CentOS 6x
Web: apache + nginx
Re: How to replace ProFTPD with vsftpd on a Debian or Ubuntu
  • Quote

Post by dreiggy » Mon Apr 22, 2019 9:22 pm

Spheerys wrote: ↑
Sat Apr 13, 2019 6:51 am
This log stay empty even with good parameters on the conf file.
It is another clue about the problem...
Seems here is needed deeper debuging. Try use strace when starting up vsftpd service.

Code: Select all

strace -s1000 service vsftpd start
(PS. you should have installed strace package)
Top


Post Reply
  • Print view

9 posts • Page 1 of 1

Return to “FTP Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password