LoginSignup
0
0

More than 3 years have passed since last update.

Bitnamiでapacheを再起動できない

Last updated at Posted at 2021-04-28

Bitnami環境でSSL証明書を更新後に
apacheを再起動できなかった時のメモです。

背景

SSL証明書を更新後、apache再起動を実施

$sudo /opt/bitnami/ctlscript.sh restart apache
httpd not running, trying to start
(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

しかし、ポートは使用されていて起動できないとエラーが。
とりあえずステータスを確認するもやはり動いていないとのこと。

$sudo /opt/bitnami/ctlscript.sh status apache
apache not running

 
 
しかし、ブラウザで確認するも正常に表示されている。。。

 
 
ポートを確認するとエラー通り別のプロセスが起動していました。

$sudo lsof -t -i:80
・・・

対処

というわけで、一旦別プロセスをKILLし、apacheを起動

$sudo kill -9 $(sudo lsof -t -i:80)
$sudo /opt/bitnami/ctlscript.sh start apache

で問題なく起動しました。
めでたしめでたし。

0
0
1

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