「sudo service apache2 restart」したら下記のエラーが出ました。
* Restarting web server apache2 (98)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs Action 'start' failed. The Apache error log may have more information. [fail] * The apache2 instance did not start within 20 seconds. Please read the log files to discover problems
- 問題の対処法
- ポートを変更
- プロセス消去
- 他のwebサーバが起動中
- nginxなどが立ち上がっている
nginxが立ち上がっていたのでstopさせるとapache2を起動できた。