Sign inSign up

tayyabtalha/apache

By tayyabtalha

•Updated over 8 years ago

CentOS Apache and PHP Base Image Systemd Enabled READY TO USE IMAGE

Image
0

175

tayyabtalha/apache repository overview

⁠CentOS Apache and PHP base image


⁠Specs:

  • CentOS 7
  • PHP 7.2
  • Apache 2.4.6
  • Systemd


⁠Run Image:

docker run -d --rm --privileged -p 80:8080 --name apache tayyabtalha/apache


⁠Docker Compose:

.....
            image: tayyabtalha/apache
            privileged: true # Should be true if you want to use systemd
            ports:
                    - "8080:80"
            depends_on:
                    - db
.....


⁠Install php package:

yum --enablerepo=remi,remi-php72 install [package name]
⁠Example:
yum --enablerepo=remi,remi-php72 install php-gmp


⁠Terminal Size Issue:

⁠If you are facing issue when you connect to bash use following command docker exec -ti apache bash -c "stty cols $COLUMNS rows $LINES && bash"

Tag summary

Content type

Image

Digest

Size

175.7 MB

Last updated

over 8 years ago

docker pull tayyabtalha/apache