Installing

Requirements

  • PHP ≥ 7.1.0

Installing

Poirot and set of packages are available on github. We will use Composer to create a new project from scratch it can be easily installed using Composer:

composer create-project poirot/project {path} dev-devel --prefer-dist

Up and Running

PHP Built-in Web Server Config

To run Poirot locally via Built-in Server, from the project's root directory by use the following command:

php -S 0.0.0.0:8000 -t html html/index.php

This will make the website available on port 8080 on all network interfaces. This means the site is accessible via http://localhost:8000 or http://<your-local-IP>:8000.

Using docker-compose

Docker enables you to rapidly deploy server environments in “containers.” Docker has become an extremely popular way to configure, save, and share server environments using containers. Because of this, installing an application or even a large stack can often be as simple as running docker pull or docker run.

docker-compose is a tool for automating configuration of containers and composing dependencies between them, such as volume storage, networking, etc.

Clone Dockerized PHP Webserver built to support Poirot by clone the repository beside to your Poirot project.

The .env file inside the folder will used for basic configuration of building application and settings such as port number, your project directory, installing dependencies and etc. copy dist file and make edit to this file based on project requirement. the first line will refer to your main project path.

Run docker compose to build and up the service:

To see what happening inside container you can use these commands in order to see about health and output inside container.

Server Configuration

Nginx Config

Apache Config

Last updated

Was this helpful?