Apache2起動せず
またいつか引っかかると思うのでメモ
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs
と出て起動できない場合は、
sites-enabled内の設定ファイルで
Listen 80
して内かどうか確認しましょう
どうやら/etc/apache2/ports.confでListen 80している状態でさらにサイト設定として書き加えると2重にポートを確保しようとして(?)できずに死ぬらしい。
このエラーと同じくして、VirtualHostの設定をして
[warn] NameVirtualHost *:80 has no VirtualHosts
というエラーが出たが、/etc/apache2/ports.confをみると
$ cat ports.conf # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default NameVirtualHost *:80 Listen 80
とあり、NameVirtualHostの記述までもあることを発見。
とするとサイト設定の時にはいらないのか・・・
ここも消したらおkだった