4
2

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.

dockerのphp-apacheイメージでのapache再起動

Posted at

やりたこと

dockerのphp-apacheイメージで不意にapacheが停止した場合、apacheを起動したい。

環境

  • dockerimage php:7.4-apache

コマンド

service apache2 start

以下はダメ。

service httpd start
httpd: unrecognized service
/etc/init.d/httpd start
bash: /etc/init.d/httpd: No such file or directory
apachectl start
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.24.0.2. Set the 'ServerName' directive globally to suppress this message

php:7.4-apacheがDebianだからとかなのかhttpdが使えなくて困った。

cat /etc/issue
Debian GNU/Linux 10 \n \l
4
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?