Unable to connect to FTP: unknown configuration directive <IfModule>

Created:

2016-11-16 13:12:52 UTC

Modified:

2017-04-24 11:30:24 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to connect to FTP: unknown configuration directive <IfModule>

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

  1. Unable to connect to FTP. The following error is shown while trying to connect to FTP:

    421 Service not available, remote server has closed connection
  2. At the same time error like as following occurs in /var/log/messages :

    fatal: unknown configuration directive <IfModule>
  3. tr_TR.UTF-8 is a system locale. ( LANG="tr_TR.UTF-8" in the /etc/locale.conf )

Cause

Root cause is the issue in glibc (GNU C library) and its tolower() function and results in failed parsing of proftpd.conf file.

Resolution

Add next line into the ftp{} section in the /etc/xinetd.d/ftp_psa to use default locale for parsing:

"env             = LC_ALL=C LANG=C"
Have more questions? Submit a request
Please sign in to leave a comment.