سلام
وقتی دستور اپاچی رو چه با سودو چه بی سودو میزنم اینو میاره
sudo apache2
[Sun Mar 27 22:59:30.262972 2022] [core:warn] [pid 122810] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot
با systemctl هم وضعیتشو چک کردم این اومد
× apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-03-27 23:07:43 +0430; 21s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 123537 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
CPU: 37ms
مارس 27 23:07:43 mamadistan apachectl[123540]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1>
مارس 27 23:07:43 mamadistan apachectl[123540]: (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80
مارس 27 23:07:43 mamadistan apachectl[123540]: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
مارس 27 23:07:43 mamadistan apachectl[123540]: no listening sockets available, shutting down
مارس 27 23:07:43 mamadistan apachectl[123540]: AH00015: Unable to open logs
مارس 27 23:07:43 mamadistan apachectl[123537]: Action 'start' failed.
مارس 27 23:07:43 mamadistan apachectl[123537]: The Apache error log may have more information.
مارس 27 23:07:43 mamadistan systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
مارس 27 23:07:43 mamadistan systemd[1]: apache2.service: Failed with result 'exit-code'.
مارس 27 23:07:43 mamadistan systemd[1]: Failed to start The Apache HTTP Server.
~
مشکلش چیه ؟ با سودو و بی سودو هم امتحان کردم