Public Repository

Last pushed: 5 months ago
Short Description
Standard Apache server with PHP.
Full Description

Getting Started

Standard Apache server with PHP. Optimized for some BAT applications such as Moodle.
For Moodle, please check the readMe file for other useful information.

Prerequisites

  • Install the web project document-root.
  • Get your host IP on the default docker Network: ipconfig (network card docker0) this will be "<hostIp>".

Installing

  • For moodle, ignore this and go directly to the "Moodle Steps".
  • Checkout the "dockerized" branch of the concerned project(s) if needed.
  • cd to the location of the docRoot you want to serve.
  • docker run --name webapp -d -p325:80 -v "$PWD":/var/www/html/ arthur28inc/webapp

-Moodle Steps-
! the installation will override your existing config.php !

  • Make a copy of your current config.php if you have one and save it under config_bak.php
  • Checkout a complete branch (develop). Pull the latest changes.
  • cd to the root of your moodle installation.
  • docker run --name moodleapp --add-host realmachine:<hostIp> -d -p325:80 -v "$PWD":/var/www/html/ arthur28inc/webapp
  • docker exec -it moodleapp setup_moodle

-End Moodle Steps-

Post-Install

Test the setup

docker exec -it webapp /bin/bash

Useful commands

  • /usr/sbin/apache2ctl -DFOREGROUND
  • ip addr show

Softwares

  • Apache2
    Server version: Apache/2.4.18 (Ubuntu)
    Server built: 2016-07-14T12:32:26

  • PHP
    PHP 7.0.15-0ubuntu0.16.04.4 (cli) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.15-0ubuntu0.16.04.4, Copyright (c) 1999-2017, by Zend Technologies

Docker Pull Command
Owner
arthur28inc

Comments (0)