Restart apache with docker php-apache image

What i did

If apache stops unexpectedly in docker's php-apache image, I want to start apache.

environment

command

service apache2 start

The following is no good.

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-I was in trouble because I couldn't use httpd because apache is Debian.

cat /etc/issue
Debian GNU/Linux 10 \n \l

Recommended Posts

Restart apache with docker php-apache image
Until you try running Apache Kafka with docker image
Run lambda with custom docker image
[Linux] Start Apache container with Docker
Proxy server with squid using docker image
Allow image posting with [Docker + WordPress + MySQL]
Image flew when updating Docker with WSL2
How to give your image to someone with docker
Launch Docker image with initial data injected with docker-compose
Rails deploy with Docker
Run Pico with docker
Explode Docker with WSL2
Use Puphpeteer with Docker
Operate Emby with Docker
Delete unused docker image
Use ngrok with Docker
Docker php-apache SSL support with self-signed certificate (my memo)
Run Payara with Docker
Php settings with Docker
Getting Started with Docker
Build an Android image for Orange Pi 4 with Docker
Disposable PHP with Docker
Install Composer with Docker
Maybe it works! Create an image with Docker and share it!
Create a Docker image with the Oracle JDK installed (yum
Register your own Docker image with ECR using AWS CLI
Build Docker Image lightweight and fast with CodeBuild with Santa Banner
Use GDAL with Python with Docker
Repeated sample with Apache Freemarker
Start Apache Solr with Embedded.
Deploy with EC2 / Docker / Laravel
Run TAO Core with Docker
Docker management with VS Code
Install yarn in docker image
docker review image creation-container start
Set up GitLab with docker
CSV output with Apache Commons CSV
Extract files from Docker Image
Access Apache Kafka with Micronaut
Get started with DynamoDB with docker
Docker autostart settings with wsl2
[Docker] Rails 5.2 environment construction with docker
Spring Boot starting with Docker
Build docker environment with WSL
Version control CocoaPods with Docker
Web application built with docker (1)
Post an image with POSTMAN
I tried BIND with Docker
React environment construction with Docker
Manipulate Excel with Apache POI
Build DynamoDB local with Docker
[Docker] Use whenever with Docker + Rails
Using PlantUml with Honkit [Docker]
Build apache7.4 + mysql8 environment with Docker (with initial data) (your own memo)
Docker Image creation for Keycloak extensions and performance testing with Gatling
Prepare a transcendentally simple PHP & Apache environment on Mac with Docker
Minimal Workflow to push Docker image to Github Container Registry with Github Actions
When building docker image with GitLab CI, wait until docker daemon starts
Image Spring Boot app using jib-maven-plugin and start it with Docker
Run (provisionally) a Docker image with ShellCommandActivity on AWS Data Pipeline