0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Apacheが起動できなくなった

Last updated at Posted at 2022-04-15

数か月ぶりにxamppを起動しようとしたらApacheが起動できなくなった。
簡易パネルのエラー文言を読む。

11:15:15  [Apache] 	This may be due to a blocked port, missing dependencies, 
11:15:15  [Apache] 	improper privileges, a crash, or a shutdown by another method.
11:15:15  [Apache] 	Press the Logs button to view error logs and check
11:15:15  [Apache] 	the Windows Event Viewer for more clues
11:15:15  [Apache] 	If you need more help, copy and post this
11:15:15  [Apache] 	entire log window on the forums

簡易パネルの文言なのでポート番号が重複してるのか、必要ファイルが消えてるのか、権限がないのか、確実な原因が分からない。
そこでエラーログ見てみたけどなぜか数か月前のログしか出てない。
検索して見つけた記事でhttpd.confやhttpd-ssl.confやhttp-vhosts.confの記述(ServerNameまわりなど)をちまちま変えて再起動を試みるが同じエラーが出る(元に戻す)。
そもそも今まで問題なく動いていたのになんで動かなくなる。
この間gulpでポートの設定をしたけど今そちらは起動していないし影響はないはず……
分からなくてこの件をポロッとMTGでこぼしたら先輩エンジニアに「IISの影響では?」と助言をもらった。それだ。
https://shimonss.hatenablog.com/entry/2016/09/04/201518
IISを停止したら問題なく起動できました。
自分で気づけなくてくやしッ。

追記

「スタートアップの種類」を自動のままにしておくとシャットダウン後PCを立ち上げた時にまた自動で実行されてしまう。常時IISを使うわけでもないなら「手動」に変えておく。

さらに追記

今度はmysqlが起動しなくなり、下記記事参考に復旧しようとしたが、wordpress復旧のあたりでめちゃめちゃになったのでwordpressと関連DBに関しては再設定となった。くやしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?