Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

apache-php

A Docker image based on Ubuntu, serving PHP running as Apache Module. Useful for Web developers in need for a fixed PHP version.

Tags

  • 5.3.10: Ubuntu 12.04 (LTS), Apache 2.2, PHP 5.3.10
  • 5.5.9: Ubuntu 14.04 (LTS), Apache 2.4, PHP 5.5.9

Usage

docker run -d -P bylexus/apache-php

A bit more specific:

docker run -d -p 8080:80 -p 2022:22 -v /home/user/webroot:/var/www -e SERVER_PASSWORD=ubuntu bylexus/apache-php:5.3.10
  • -v [local path]:/var/www maps the container's webroot to a local path
  • -p [local port]:80 maps a local port to the container's HTTP port 80
  • -p [local port]:22 maps a local port to the container's SSH daemon port 22
  • -e SERVER_PASSWORD=[secret] sets the user passwords for both root and the unprivileged ubuntu user
  • -e SERVER_KEY=[ssh-key-string] sets the SSH key for the ubuntu user to log in passwordless via ssh

Installed packages

  • Ubuntu Server, based on ubuntu docker iamge
  • openssh-server
  • apache2
  • php5
  • php5-cli
  • libapache2-mod-php5
  • php5-gd
  • php5-json
  • php5-ldap
  • php5-mysql
  • php5-pgsql

Configurations

  • Apache: .htaccess-Enabled in webroot (mod_rewrite with AllowOverride all)
  • php.ini:
    • display_errors = On
    • error_reporting = E_ALL & ~E_DEPRECATED & ~E_NOTICE
Docker Pull Command
Owner
adamjimenez
Source Repository

Comments (2)
nicoad
2 years ago

@coolman same issue here. I m new to docker so probably a total noob question but how to fix this ? just performed a fresh install on debian and can't install run this image.

docker run -d -P bylexus/apache-php

Unable to find image 'bylexus/apache-php:latest' locally
Pulling repository docker.io/bylexus/apache-php
Error: image bylexus/apache-php:latest not found

coolman
2 years ago

Hello,

I tried to download your image but I'm getting the following error:

Pulling repository docker.io/bylexus/apache-php
Error: image bylexus/apache-php:latest not found