Проблемы XAMPP, PROFTPD

я установил XAMPP на свой macOS Mojave. Когда я запускаю эту команду «sudo/Applications/XAMPP/xamppfiles/xampp start»

я получаю следующие ошибки:

Запуск XAMPP для Mac OS X 7.2.10-0... XAMPP: Запуск Apache... ок. XAMPP: Запуск MySQL... хорошо. XAMPP: запуск ProFTPD... сбой. Содержимое «/Applications/XAMPP/xamppfiles/var/proftpd/start.err»: Mudasars-MacBook-Pro.local proftpd[4057]: предупреждение: невозможно определить IP-адрес «Mudasars-MacBook-Pro.local» Mudasars- MacBook-Pro.local proftpd[4057]: ошибка: не настроены допустимые серверы Mudasars-MacBook-Pro.local proftpd[4057]: Fatal: ошибка обработки файла конфигурации «/Applications/XAMPP/xamppfiles/etc/proftpd.conf»

Мой файл proftpd.conf:

# 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      admin

# Normally, we want files to be overwriteable.
<Directory /Applications/XAMPP/xamppfiles/htdocs/*>
  AllowOverwrite        on
</Directory>

# only for the web servers content
DefaultRoot /Applications/XAMPP/xamppfiles/htdocs

<Limit SITE_CHMOD>                                                                                                                                                         
  DenyAll                                                                                                                                                                  
</Limit>  

# daemon gets the password "xampp"
UserPassword daemon 2TgxE8g184G9c

# 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
#to login with "OSX Users"
AuthPAM on
AuthPAMConfig ftpd
UseFtpUsers off

Кто-нибудь знает, как это исправить?

спасибо


person Community    schedule 01.10.2018    source источник
comment
пожалуйста, добавьте содержимое /Applications/XAMPP/xamppfiles/etc/proftpd.conf к вопросу.   -  person Jan Myszkier    schedule 01.10.2018
comment
Обновил вопрос сейчас   -  person    schedule 01.10.2018


Ответы (1)


Пожалуйста, попробуйте добавить:

127.0.0.1  Mudasars-MacBook-Pro.local

в свой файл /etc/hosts и повторите попытку

person Jan Myszkier    schedule 01.10.2018
comment
Ура наконец, спасибо! Но почему это Mudasars-MacBook-Pro.local, а не «localhost»?? - person ; 01.10.2018
comment
потому что большинство служб ссылаются на результат команды hostname, а Mudasars-MacBook-Pro.local — это имя вашего компьютера (хоста). - person Jan Myszkier; 01.10.2018
comment
а ок спасибо. Не могли бы вы сказать мне, как я могу дать доступ к файлу, подобному этому, через терминал? -› -rw-r--r--@ , я был бы рад, если бы вы могли мне помочь с этим =) - person ; 01.10.2018
comment
это другая проблема, пожалуйста, создайте еще один вопрос SO с проблемой обмена или проверьте другие вопросы, подобные этому. то есть: superuser.com/questions/1110783/ - person Jan Myszkier; 01.10.2018
comment
Чтобы найти имя хоста Mac, просто введите имя хоста в терминал. - person Seunope; 10.04.2021