@fanepka
Работаю на Python

Не запускается apache2, raspberry pi 4?

Привет хабр! Столкнулся с проблемой. Решил установить на Raspberry Apache2, но проблема, "Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message"

Перепробовал все варианты с интернета.

1) Файла httpd.conf нет
2) После редактирования файла apache2.conf, а именно добавления ServerName localhost - ошибка не ушла

в чем может быть проблема?

Process: 23778 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Dec 03 17:01:09 raspberrypi apachectl[23778]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message
Dec 03 17:01:09 raspberrypi apachectl[23778]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
Dec 03 17:01:09 raspberrypi apachectl[23778]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
Dec 03 17:01:09 raspberrypi apachectl[23778]: no listening sockets available, shutting down
Dec 03 17:01:09 raspberrypi apachectl[23778]: AH00015: Unable to open logs
Dec 03 17:01:09 raspberrypi apachectl[23778]: Action 'start' failed.
Dec 03 17:01:09 raspberrypi apachectl[23778]: The Apache error log may have more information.
Dec 03 17:01:09 raspberrypi systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Dec 03 17:01:09 raspberrypi systemd[1]: apache2.service: Failed with result 'exit-code'.
Dec 03 17:01:09 raspberrypi systemd[1]: Failed to start The Apache HTTP Server.
  • Вопрос задан
  • 163 просмотра
Решения вопроса 1
@fsfsfs32
у вас сервер не может сокет забиндить а не ServerName
Ответ написан
Пригласить эксперта
Ответы на вопрос 1
@fanepka Автор вопроса
Работаю на Python
У меня получилось запустить Apache2, выключив при этом Nginx. Встает второй вопрос, как запустить Nginx?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы