Skip to content

devinekask/web2-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Goal

The goal of this repo is to setup a local server for PHP development, in combination with MariaDB and PHP. We'll be using Docker for this.

Installation

Docker

Web 2 server installation

With Docker you can setup different "containers" to run specific stacks on your machine.

  • Download this project at https://github.com/devinekask/web2-docker/archive/main.zip
  • Extract the zip file into the folder where you want to keep all your files for this course
  • You'll see a folder called docker and a folder called www. Create an additional folder called db in the same location.
  • Right click on the start file and choose open. You might get a notification the file isn't from the App Store. You may ignore this and open the file.
  • Your Terminal should open and execute a few commands. The very first time this might take a couple of minutes.

Web 2 server usage

Once the server is running (using the start script), you can use the server as follows:

  • Open your browser and navigate to http://localhost. You should see an overview of your PHP installation.
  • All files and folders inside of the www/html folder are accessible through http://localhost
  • You can shut down the server by opening the stop script.

About

Docker image for the Development2 course

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •