ProFTPD 失败:用户密码缺少参数

ProFTPD 失败:用户密码缺少参数

我是 php 新手。我无法在 xampp 中启动 Proftpd。我使用的是 ubuntu 64 位。几天前它工作正常,但现在却无法正常工作

**Error Message of Lampp:**
sudo /opt/lampp/lampp startftp
XAMPP: Starting ProFTPD...fail.
Contents of "/opt/lampp/var/proftpd/start.err":
dineshkumar-desktop proftpd[5108]: Fatal: UserPassword: missing arguments on line 43 of '/opt/lampp/etc/proftpd.conf'

这是我的 proftpd.cong 文件:

# This is a basic ProFTPD configuration file (rename it to 
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "daemon" and "ftp" for normal operation and anon.

ServerName          "ProFTPD"
ServerType          standalone
DefaultServer           on

# Port 21 is the standard FTP port.
Port                21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask               022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd)
MaxInstances            30

# Set the user and group that the server normally runs at.
User daemon
#Group daemon

# Normally, we want files to be overwriteable.
<Directory /opt/lampp/htdocs/*>
  AllowOverwrite        on
</Directory>

# only for the web servers content
DefaultRoot /opt/lampp/htdocs

<Limit SITE_CHMOD>                                                                                                                                                         
  DenyAll                                                                                                                                                                  
</Limit>  

# daemon gets the password "xampp"
# commented out by xampp security
#UserPassword daemon 2TgxE8g184G9c
UserPassword  daemon
Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_mysql.dll' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20151012/php_mysql.dll: cannot open shared object file: No such file or directory in Unknown on line 0
w97KTswgQ8VI.

# daemon is no normal user so we have to allow users with no real shell
RequireValidShell off

# daemon may be in /etc/ftpusers so we also have to ignore this file
UseFtpUsers off

答案1

请删除以“警告:PHP 启动:无法加载动态库...”开头的行,然后将“UserPassword daemon”部分和密码放在一行上,就像上一行的语法一样。

顺便说一句,如果在本地 LAN 之外使用,则更改密码是有意义的。

相关内容