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.

MAMPでApacheが起動しない😇

Posted at

超初心者の私が、MAMPを利用して環境構築しようとした矢先につまづいたので、記録に残しておきます。

MAMPをStart

さっそくMAMPのインストールをして、PreferencesからPortを80&3306に変更した後、サーバー起動ボタンを押したら、、
image.png
注意表示が出てきました。

「Apache couldn't be started. Please check your MAMP installation and configuration.」

Apacheが起動できない!!!

原因

色々調べてみて、すでにデフォルトのPort番号が使われてるのでPort番号を変えればいい等と出てくるが、私のような初心者が、そもそも重複するほどサーバーを使っていないはず、、、

念のため、ブラウザでhttp://localhostをweb検索してみると、
元気いっぱいに It Works! の状態でした。(笑)
image.png

起動させた記憶は全くないが、すでにApacheがデフォルトのPortで起動しており、MAMPが起動できない状態であったと判明しました。

ターミナルにて、すでに起動中のApacheを停止しました。

$ sudo apachectl stop

MAMP起動

この後、再度MAMPのサーバー起動ボタンを押したら、正常に繋がりました!

結論

MAMPでApacheが起動できない問題を解決できました。
学んだことは、
1.MAMPはPortは重複して利用しない。
2.思い込みせず確認。
です。

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?