Code Monkey home page Code Monkey logo

apache_php's Introduction

Description

This Image serves the purpose of testing your Application with Apache 2.4.7 and Php-Fpm-7 before upgrading your Apache and Php for optimal performance. This image reduces the load of Apache by using Php-Fpm instead of mod-php.Using mod_php each Apache worker has the entire PHP interpreter loaded into it. Because Apache needs one worker process per incoming request, you can quickly end up with hundreds of Apache workers in use, each with their own PHP interpreter loaded, consuming huge amounts of memory.To address this issue Php is configured as a CGI process.Configuration has been crafted keeping in view CGI application vulnerability.This image outputs the logs to stdout and runs apache as site user.The image is immune to httpoxy vulnerability.

The Image size is 87.82 MB and uses alpine3.5 as base image

To Start the Container

docker run --name apache smtripat/alpine-apache-php-fpm:latest

To make the conatiner listen on host port 80 docker run -p 80:80 -d --name apache smtripat/alpine-apache-php-fpm:latest

Docker Compose

apache: 
   image: smtripat/alpine-apache-php-fpm:latest

Hosting A Web Application

Docroot is the path where the code directory is mounted.

docker run --name apache -v /path/to/docroot:/var/www/localhost/htdocs smtripat/alpine-apache-php-fpm:latest

Mapping the Port 80 of the container to your local machine or host machine port 8080(or any other port).

docker run -p 8080:80 --name apache -v /path/to/docroot:/var/www/localhost/htdocs smtripat/alpine-apache-php-fpm:latest

Using Docker-Compose

apache:
  image: smtripat/alpine-apache-php-fpm:latest
  volumes:
    - /path/to/docroot:/var/www/localhost/htdocs

To get Shell Access inside the container

To get access as site user ```docker exec -it su site````

To get access as root user docker exec -it <container-name> /bin/ash

Please free feel free to raise issues.

apache_php's People

Contributors

nabad600 avatar ndas198 avatar renovate-bot avatar

Stargazers

 avatar

Watchers

 avatar

apache_php's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • alpine 3.5
Dockerfile-5.6
  • alpine 3.5
Dockerfile-7.0
Dockerfile-7.1
  • php 7.0-fpm-alpine
Dockerfile-7.2
  • php 7.1.4-fpm-alpine
Dockerfile-7.3
  • php 7.2-fpm-alpine
Dockerfile-7.4
  • php 7.4-fpm-alpine

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.