LoginSignup
2
2

More than 3 years have passed since last update.

MAMPのhostに繋がらなくなったらFWも疑え

Last updated at Posted at 2020-02-29

個人的メモです。

問題

MacBook12インチで、今まで普通に使えていたのにMAMPのどのhostにも繋がらなくなった。

症状/調査

  • MAMPのGUI上ではApacheは起動している
  • ブラウザでアクセスしてもがタイムアウトする
このページは動作していませんlocalhost からデータが送信されませんでした。
ERR_EMPTY_RESPONSE
  • どのhostも、WebStartも表示されない
  • curl localhost 返答なし
  • logs/apache_error.log にも特にエラーが表示されない
[Sat Feb 29 16:06:03 2020] [notice] Digest: generating secret for digest authentication ...
[Sat Feb 29 16:06:03 2020] [notice] Digest: done
[Sat Feb 29 16:06:03 2020] [notice] FastCGI: process manager initialized (pid 7428)
[Sat Feb 29 16:06:03 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.4.2 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations
[Sat Feb 29 16:07:52 2020] [notice] caught SIGTERM, shutting down
[Sat Feb 29 16:08:03 2020] [notice] Digest: generating secret for digest authentication ...
[Sat Feb 29 16:08:03 2020] [notice] Digest: done
[Sat Feb 29 16:08:03 2020] [notice] FastCGI: process manager initialized (pid 7821)
[Sat Feb 29 16:08:03 2020] [notice] Apache/2.2.34 (Unix) mod_wsgi/3.5 Python/2.7.13 PHP/7.4.2 mod_ssl/2.2.34 OpenSSL/1.0.2o DAV/2 mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_perl/2.0.11 Perl/v5.24.0 configured -- resuming normal operations
  • ping localhost 返答あり
ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=29.155 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.135 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.129 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.104 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.123 ms
64 bytes from 127.0.0.1: icmp_seq=5 ttl=64 time=0.069 ms
64 bytes from 127.0.0.1: icmp_seq=6 ttl=64 time=0.102 ms
64 bytes from 127.0.0.1: icmp_seq=7 ttl=64 time=0.186 ms
^C
--- localhost ping statistics ---
8 packets transmitted, 8 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.069/3.750/29.155/9.602 ms
  • MAMP Proの再インストールしたが変化なし
  • hostsにはきちんとMAMPの書き込みがある
  • MySQLの動作は正常 → Apacheがおかしい?

原因判明!

EeetのパーソナルファイアウォールをOFFにしたら表示された。
FWのせいだった…

記憶にないが、Esetのアップデートがあったのだろうか…。

気づいたきっかけ

この記事の下記部分をみてEsetを疑った。

it turns out this was a proxy issue and just had to allow localhost:8888 ...

課題

FWは起動しておきたいので、とりあえずは「対話式で」逐一「許可」をしているが、いちいち操作が必要で大変。

EsetのFWをOFF。
MacデフォルトのFWをON。
としました。

追記: この手順でEsetのFWをONにしたままMAMPの通信を許可することもできました。

2
2
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
2
2