# # introduction

The best alternative to XAMPP on Windows is Laragon, but it’s not our topic today, so I won’t talk about it.

Recently, due to the requirements of the project, I changed the system development environment from Windows to Linux, using Elementary OS Loki. Since I have been separated from XAMPP for many years, I am not sure whether XAMPP has changed its pride in such a long time, but the bad impression of that time is really impressive. So now that I’ve moved to Linux, I still don’t want to use it, even though it’s still the most widely used development environment integration on Linux.

After a bit of exploration, I found today’s protagonist, Devilbox

Introduction of # #

Devilbox is a modern and highly customizable development environment integration, an alternative to LAMP and MEAN, based on Docker and Docker-Compose and supported on all major platforms (Win & Linux). It does not limit the number of projects and automatically creates virtual-host and DNS records. It also provides all the major development tools. ~~ official website brief translation

In short, Devilbox supports it

  1. One-click generation of projects based on mainstream frameworks

  2. Custom environment Settings, as well as versions

  3. Come with a variety of language development tools

  4. Built-in control panel (mainly to view the environment status, can modify the project is basically equal to 0)

# # to install

  1. Because Devilbox depends on Docker, please install Docker and docker-compose first. Because different Linux distributions have slight differences, the length is difficult to control. This article does not provide installation steps

  2. Run the following two commands to ensure that docker is installed docker -v docker-compose -v

  3. Get the Devilbox installation package using the git command in the directory where you want to install Devilbox

Git installation is still beyond the scope of this article, so do your own search

git clone https://github.com/cytopia/devilbox

  1. Go to devilbox and copy the env file template CD devilbox && cp env-example. env

  2. Env file, set your environment Settings, PHP version, mysql version, virtual host suffix, NoSQL database Settings, etc., all in this file

  3. Enable Devilbox docker-compose up

  4. Enter localhost in the browser to access the control panel

  5. Disable devilbox docker-compose Down

  6. In the devilbox directory, run./shell.sh to access the Devilbox environment. In this environment, you can use all the native commands such as Composer, NPM, PHP, etc

Conclusion # #

Devilbox is a new development environment solution. It’s not as easy to install as XAMPP, but it’s extremely easy to try out the various additional development tools and one-click project creation.