Sign inSign up

marlous/lamp

By marlous

Updated over 7 years ago

LAMP on Ubuntu

Image
0

130

marlous/lamp repository overview

LAMP on Ubuntu

Summary

  • Ubuntu 18.04.2
  • Apache 2.4.29
  • MySQL 5.7.25
  • PHP 7.2.15

Feature

  • vim-gtk default installed (default time zone setting (ShangHai))
  • phpmyadmin default installed
  • supervisord default installed

Details

  1. Default accounts & passwords:
  • MySQL: default account & password: root\12345、admin\12345
  • phpmyadmin: default account & password: admin\12345 (You can change it in MySQL)
  1. More details:
  • Apache 80 port、MySQL 3306 port
  • Configuration of phpmyadmin: /var/www/phpmyadmin/libraries/config.default.php
  • Root of apache web: /var/www
  • Configuration of apache: /etc/apache2
  • Data of MySQL: /var/lib/mysql
  • Configuration of MySQL: /etc/mysql

How to use it

  1. Runing container:
  • Not use volumes:
docker run -it -p 80:80 -p 3306:3306 --name container_name marlous/lamp:latest /bin/bash
  • Using volumes:
/* Creating volumes */
docker volume create test_lamp_www
docker volume create test_lamp_apache_conf
docker volume create test_lamp_mysql_conf
docker volume create test_lamp_mysql_data
/* Running */
docker run -it -p 80:80 -p 3306:3306 -v test_lamp_www:/var/www -v test_lamp_apache_conf:/etc/apache2 -v test_lamp_mysql_conf:/etc/mysql -v test_lamp_mysql_data:/var/lib/mysql --name container_name marlous/lamp:latest /bin/bash
  1. Starting Service:
service apache2 start
service mysql start
  1. Testing: (local browser)
  • 127.0.0.1
  • 127.0.0.1/info.php
  • 127.0.0.1/phpmyadmin
  1. Remembering change default passwords and configurations:
  • Change MySQL accounts' passwords: root、admin
  • Change phpmyadmin configuration

Tag summary

Content type

Image

Digest

Size

207.9 MB

Last updated

over 7 years ago

docker pull marlous/lamp