ProFTPd - Enabled after Installation but cannot start/configure

Hi, I have had to enable proftpd after installing webmin without it being enabled due to a client's requirement. I enabled "ProFTPd virtual FTP" in Features and Plugins but whilst the service exists it cannot start.

I get the following message when I try to start the service manually... "ProFTPD warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration."

This is pretty self-explanatory i.e. Im assuming since proftpd hasn't been configured that it doesn't know whether to start standalone or through xinetd. However, I cannot find anywhere in the webmin interface to configure this. I don't want to configure proftpd manually unless necessary as I would prefer it to be configured in the optimal way to work with virtualmin.

Also, after enabling proftpd in Features and Plugins the option to enable the feature per server does not appear in Edit Virtual Server >> Enabled Fetaures section of any of the virtual servers. Additionally, the proftd service does not appear under System Information >> Status.

Status: 
Closed (fixed)

Comments

Howdy -- what output do you receive if you run these two commands:

/etc/init.d/proftpd check-config
dpkg -l 'proftpd*

Also, do you receive the same message if you try starting ProFTPd from the command line:

/etc/init.d/proftpd restart

Note that you don't need to enable "ProFTPd virtual FTP" in Virtualmin -- that's actually a specific type of FTP configuration -- FTP in general will work quite well without that though.

Hi,

#/etc/init.d/proftpd check-config

www proftpd[21345]: mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled ProFTPD configuration OK

# dpkg -l proftpd*

dpkg-query: no packages found matching proftpd.conf dpkg-query: no packages found matching proftpd.conf.proftpd-old dpkg-query: no packages found matching proftpd.conf.ucf-old

Error message I got was when I was starting proftpd from the command line.

Thanks, Patrick

Oops, it looks like I didn't add the two ' marks to my command above -- can you try running this on your server:

dpkg -l 'proftpd*'

Ok, here you go...
# dpkg -l 'proftpd*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=============================-===================-===================-================================================================
un proftpd (no description available)
un proftpd-abi-1.3.4a (no description available)
ii proftpd-basic 1.3.4a-5+deb7u1 amd64 Versatile, virtual-hosting FTP daemon - binaries
un proftpd-doc (no description available)
un proftpd-mod-ldap (no description available)
un proftpd-mod-mysql (no description available)
un proftpd-mod-odbc (no description available)
un proftpd-mod-pgsql (no description available)
un proftpd-mod-sqlite (no description available)
ii proftpd-mod-vroot 0.9.2-2+b2 amd64 ProFTPD module mod_vroot

Okay, I don't see any config errors, and your ProFTPd version looks good.

Can you paste in the contents of your /etc/default/proftpd file?

Also, what is the output of this command:

grep -i ServerType /etc/proftpd/proftpd.conf

# cat /etc/default/proftpd

# Defaults for proftpd initscript

# Main configuration file
CONFIG_FILE=/etc/proftpd/proftpd.conf

# Master system-wide proftpd switch. The initscript
# will not run if it is not set to yes.
RUN="yes"

# Default options.
# For more exhaustive logging, try "-d 3".
OPTIONS=""

# grep -i ServerType /etc/proftpd/proftpd.conf

ServerType inetd

Okay, try editing /etc/proftpd/proftpd.conf, and change the "ServerType" parameter so that it reads "standalone".

Once you do that, restart Proftpd with this command:

/etc/init.d/proftpd restart

Once you do that, does that work properly?

Yep, that's got it running now thanks.
I get the following warning but I can log on ok...

# service proftpd start
[....] Starting ftp server: proftpdwww proftpd[4368]: mod_tls_memcache/0.1: notice: unable to register 'memcache' SSL session cache: Memcache support not enabled
. ok

That warning shouldn't cause any problems... I receive it on my own system actually.

That's great that it's working now! Let us know if you have any other questions.

Automatically closed -- issue fixed for 2 weeks with no activity.