Code Monkey home page Code Monkey logo

ft_server's Introduction

โœ… FT_SERVER (Project 2020)

Description

This topic is intended to introduce you to system administration. It will make you aware of the importance of using scripts to automate your tasks. For that, you will discover the "docker" technology and use it to install a complete web server. This server will run multiples services: Wordpress, phpMyAdmin, and a SQL database.

Installing docker on Linux

  • Before proceeding to install the program itself, you need to update the system to the current state. To do this, run:
    sudo apt update && sudo apt upgrade
  • Before installing Docker, you must install additional kernel packages that allow you to use Aufs for Docker containers. We can use this file system to track changes and take snapshots of containers:
    sudo apt install linux-image-extra-$(uname -r) linux-image-extra-virtual
  • You also need to install the packages required for apt to work over https:
    sudo apt install apt-transport-https ca-certificates curl software-properties-common
  • After all the preparations are completed and you are sure that your system is completely ready, you can proceed to installation. We will install the program from the official developer repository. First you need to add the repository key:
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
  • Then add the docker repository to the system:
    sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
    sudo apt update && apt-cache policy docker-ce
  • And installing Docker on Linux:
    sudo apt install -y docker-ce

P.s. To complete the installation, we just need to add our user to the docker group. Otherwise when you start the utility you will get an error connecting to the socket:

To add it, run: sudo usermod -aG docker $(whoami)

Then we check whether the service is running: sudo systemctl status docker

Installing docker on Mac OS

Open managed software center and download Docker Toolbox

Installing nginx php sql wordpress using Docker

  • Clone a repository git clone https://github.com/markveligod/ft_server.git
  • Go to the "ft_server" folder
  • To run bash start.sh






P.s. This project was made and tested under Ubuntu 20.04.
For Mac OS I recommend replacing in main.html the line localhost to the IP address allocated by Docker toolbox.

Other

Author: Mark Veligod

ft_server's People

Contributors

markveligod avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.