Public Repository

Last pushed: 2 years ago
Short Description
LAMP on Ubuntu 14.04.1 LTS Container
Full Description

LAMP on Ubuntu 14.04.1 LTS Container

A tutorial for using this LAMP image is at:

Configured using the Linode "Hosting a Website" guide:

Apache Configuration:

  • A copy of the Apache default .conf file at: /etc/apache2/apache2.backup.conf

  • Changes to the Apache /etc/apache2/apache2.conf file are:

    i. "KeepAlive Off" instead of on

    ii. Module added to end of file: <IfModule mpm_prefork_module> StartServers 2 MinSpareServers 6 MaxSpareServers 12 MaxClients 30 MaxRequestsPerChild 3000 </IfModule>

    iii. Hostname added to end of file: ServerName localhost

  • Enabled Virtual Host file at /etc/apache2/sites-available/

  • Created directories for Virtual Host file:


MySQL Configuration:

  • Temporary root password: "Admin2015" Change immediately!

  • Ran mysql_secure_installation :
    i. Removed anonymous user accounts
    ii. Disable remote root login
    iii. Removed the test database

  • MySQL configuration file at /etc/mysql/my.cnf
    i. Changed settings:

       max_connections = 75
       key_buffer = 32M
       max_allowed_packet = 1M
       thread_stack = 128K
       table_cache = 32
  • Example database: exampleDB

  • Example user: example_user

  • Example user password: Admin2015

PHP Configuration:

  • PHP configuration file at /etc/php5/apache2/php.ini

    i. Changed settings: max_execution_time = 30 memory_limit = 128M error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR display_errors = Off log_errors = On error_log = /var/log/php/error.log register_globals = Off

  • Created directory: /var/log/php

  • Changed /var/log/php ownership to www-data

Docker Pull Command

Comments (10)
24 days ago

I cant connect my MySQL DB to PHP doc on host server... Do anyone have an idea what I'm doing wrong?

2 months ago

I am a newbie docker and linux -- so forgive me if I missed something here. However, I cant seem to find the root password for this image. I am prompted for it when I try to SSH into it. I understand SSH isnt the ideal way to talk to docker containers but I'm just trying to do one step at a time :)


5 months ago

This image worked fine, however, the php-mysql package is missing.
apt-get install php5-mysql

8 months ago

The password is correct, you have to use it with the double quotes on each side password:"Admin2015"

a year ago

@fofiedelly I don't think there is a Dockerfile, I think it was built using the updating and commiting approach for building an image

a year ago

Where can i find the Dockerfile of this project ?

2 years ago

Hi the password given for mysql is incorrect, please fix your guide/image.

2 years ago

I cannot login into mysql. The default password of root is not correct. Please check

2 years ago

is it possible having access to the dockerfile to personnalize a docker image ?