R
R
Renat Ataev2020-12-03 20:13:14
Apache HTTP Server
Renat Ataev, 2020-12-03 20:13:14

apache2, raspberry pi 4 won't start?

Hi hubr! Faced a problem. I decided to install Apache2 on Raspberry, but the problem is, "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"

Tried all the options from the Internet.

1) There is no httpd.conf file
2) After editing the apache2.conf file, namely adding ServerName localhost - the error did not go away

, what could be the problem?

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.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
F
fsfsfs32, 2020-12-03
@fanepka

your server cannot bind the socket and not ServerName

R
Renat Ataev, 2020-12-03
@fanepka

I managed to start Apache2, while turning off Nginx. The second question arises, how to run Nginx?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question