Добрый день! Не хотят работать apache2 и php. Переустановка их не помогает, а систему ставить заново не хочется.
Вот что выдает при запуске:
linux-dfvd:/home/servak # systemctl start apache2
Job for apache2.service failed. See ‘systemctl status apache2.service’ and ‘journalctl -xn’ for details.
В статусе:
linux-dfvd:/home/servak # systemctl status apache2
apache2.service - The Apache Webserver
Loaded: loaded (/usr/lib/systemd/system/apache2.service; disabled)
Active: failed (Result: exit-code) since Пн 2016-05-16 13:46:44 MSK; 5min ago
Process: 4594 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
Process: 4576 ExecStart=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k start (code=exited, status=1/FAILURE)
Main PID: 4576 (code=exited, status=1/FAILURE)
CGroup: /system.slice/apache2.service
май 16 13:46:44 linux-dfvd start_apache2[4576]: (98)Address already in use: AH00072: make_sock: could not bind to addr…:]:80
май 16 13:46:44 linux-dfvd start_apache2[4576]: (98)Address already in use: AH00072: make_sock: could not bind to addr…0:80
май 16 13:46:44 linux-dfvd start_apache2[4576]: no listening sockets available, shutting down
май 16 13:46:44 linux-dfvd start_apache2[4576]: AH00015: Unable to open logs
май 16 13:46:44 linux-dfvd systemd[1]: apache2.service: main process exited, code=exited, status=1/FAILURE
май 16 13:46:44 linux-dfvd start_apache2[4594]: AH00557: httpd2-prefork: apr_sockaddr_info_get() failed for linux-dfvd
май 16 13:46:44 linux-dfvd start_apache2[4594]: AH00558: httpd2-prefork: Could not reliably determine the server’s ful…ssage
май 16 13:46:44 linux-dfvd start_apache2[4594]: httpd (no pid file) not running
май 16 13:46:44 linux-dfvd systemd[1]: Failed to start The Apache Webserver.
май 16 13:46:44 linux-dfvd systemd[1]: Unit apache2.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.
В чем проблема и как её можно исправить, ‘минуя’ переустановку? Аналогичная проблема и в php c postgresql:
linux-dfvd:/home/servak # systemctl status php5
php5.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
linux-dfvd:/home/servak # systemctl status postgresql
postgresql.service
Loaded: loaded (/usr/lib/systemd/system/postgresql.service; enabled)
Active: failed (Result: exit-code) since Пн 2016-05-16 13:32:54 MSK; 28min ago
май 16 13:32:54 linux-dfvd systemd[1]: Failed to start postgresql.service.
май 16 13:32:54 linux-dfvd systemd[1]: Unit postgresql.service entered failed state.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:1] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:2] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:3] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:17] Not an absolute path, ignoring…er.pid
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:1] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:2] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:3] Assignment outside of section. Ignoring.
май 16 13:46:12 linux-dfvd systemd[1]: [/usr/lib/systemd/system/postgresql.service:17] Not an absolute path, ignoring…er.pid
Hint: Some lines were ellipsized, use -l to show in full.