Skip to content

The purpose of this project is administration system. The goal is to use the Docker Technology in order to install a complete web server. This server will run multiple services : Wordpress, phpMyAdmin and a SQL database.

lilafallet/FT_SERVER_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 

Repository files navigation

FT_SERVER_42

REMOVE ALL STOPPED CONTAINERS / ALL UNUSED NETWORKS BY AT LEAST ONE CONTAINERS / ALL DANGLING IMAGES / ALL DANGLING BUILD CACHE :

$> docker system prune

BUILD THE IMAGE :

$> docker build -t test .

RUN IMAGE AS A CONTAINER :

$> docker run -it -p 80:80 -p 443:443 test

PRINT LIST OF CONTAINERS :

$> docker ps -a

TO RUN A COMMAND IN A RUNING CONTAINER :

$> docker exec -ti [container's name] bash

AUTOINDEX ON :

$> bash tmp/autoindex.sh ON

AUTOINDEX OFF :

$> bash tmp/autoindex.sh OFF

STOP A CONTAINER :

$> docker stop [container's name]

PHPMYADMIN

  • USER phpmyadmin : lila
  • MDP phpmyadmin : hey123

IF PORT 80 IS ALREADY USE

STOP PORT 80/443 :

$> bash srcs/port.sh stop

START PORT 80/443 :

$> bash srcs/port.sh start

IF IT STILL DOESN'T WORK AND PORT 80 IS USED BY APACHE2

  • $> sudo vim /etc/apache2/ports.conf
  • $> sudo vim /etc/apache2/sites-available/default.ssl.conf
  • $> sudo vim /etc/apache2/sites-available/000-default.conf
-> change 80 by 7080
-> change 443 by 7443

IF STILL DOESN'T WORK

$> docker run -it -p 4000:80 -p 443:443 test

About

The purpose of this project is administration system. The goal is to use the Docker Technology in order to install a complete web server. This server will run multiple services : Wordpress, phpMyAdmin and a SQL database.

Topics

Resources

Stars

Watchers

Forks