Sign inSign up

jbeat/apache-php

By jbeat

•Updated about 2 years ago

PHP (5.6/7.4) with local dev-only Apache, rewrite, gettext, allow htaccess, set up short URL

Image
0

1.5K

jbeat/apache-php repository overview

⁠Web Server

  • Apache configured for local development.

⁠Multi-Architecture Image

  • Base Image: php:5.6-apache, php:7.4-apache
  • Docker Image: jbeat/apache-php:5.6.0,jbeat/apache-php:7.4.0, jbeat/apache-php:laravel-7.4.0
  • Architectures: AMD64 (64-bit x86), ARM64 (64-bit ARM)

⁠Usage

  1. Pull the Docker image:

    docker pull jbeat/apache-php:tag
    
  2. Run the Docker container:

     docker run -d --name [container-name] -p 8080:80 -v $(pwd):/var/www/html jbeat/jbeat/apache-php:tag
    

    Replace [container-name] with a desired name for your container and 8080 with the desired host port. The -v option mounts the current directory ($(pwd)) to the container's /var/www/html directory, allowing you to easily sync your local code with the container.

⁠PHP Version

  • PHP 5.6.0
  • PHP 7.4.0

⁠Apache Configuration

  • Options FollowSymLinks: Settings allow the server to follow symbolic links in the directory

  • Rewrite Module Enabled: The Apache configuration has been adjusted to include the enabled rewrite module.

  • Require all granted: Give all users full access to the contents of the directory for development environment

  • mpm_prefork Configured: The mpm_prefork module has been configured for optimal performance in the local development environment.

⁠PHP Extensions

  • mysqli support.
  • pdo_mysql support.
  • gettext support.
  • mbstring.

⁠Timezone Setting

  • Timezone set to Asia/Seoul.

⁠Additional Features

  • Shortcodes enabled.

⁠Notes

  • This image is suitable for local development environments.
  • Exposed Port: 80 for web access.
  • Default Command: ["apachectl", "-D", "FOREGROUND"] to start the Apache server.

Tag summary

Content type

Image

Digest

sha256:9632752eb…

Size

186.1 MB

Last updated

about 2 years ago

docker pull jbeat/apache-php