Help us understand the problem. What is going on with this article?

Cloud9でApacheが起動しない

More than 3 years have passed since last update.

Cloud9でPHP開発を行っている時

phpMyAdminに接続できなくなってしまう事象が発生

結論から言うと

Runボタンを押してサーバーを起動させたまま
コンソールからApacheを起動したため
ポートが競合して起動失敗していた。

Stopボタンでサーバを停止してから、改めて起動することで
無事phpMyAdminに接続できるようになった。

エラー詳細は以下

Configuring database
Starting apache
 * Restarting web server apache2
(98)Address already in use: AH00072: make_sock: could not bind to address[::]:8080
(98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
AH00015: Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
   ...fail!

8080番が競合しているため起動できないと言われた。

つまり、phpmyadminを起動しながら、webサーバは起動できない。
以下のコマンドを入力して、apacheを停止させる必要がある。

sudo service apache2 stop
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした