You can finish this article in about 1 minute at 🕰️

👯 preface

The installation environment is difficult to achieve orthogonality, and the various technologies in the environment are also in healthy rapid iteration.

🔭 expected

  • Run the Laravel 8 project in Linux
    • php
    • mysql
    • nginx

💻 body

To install the base environment, I recommend using LNMP for the following reasons:

  • Resolve unnecessary inter-software dependencies
  • Unified environment architecture of multiple servers facilitates version upgrade

The specific installation steps are omitted. The installation module on the LNMP official website has been written in great detail. The installation takes a long time and requires patience.

After the installation is complete, we initialize the base project for Laravel 8:

composer create-project --prefer-dist laravel/laravel blog
Copy the code

At this point, it is recommended to switch to the domestic mirror, ali cloud mirror is recommended:

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
Copy the code

Restore the default mapping address composer config -g repo.packagist composer https://packagist.org

composer install
Copy the code

❓ Problem Summary

  • Composer install Undefined index: process Cause: Swoole is not installed Solution: Linux environment is installed swoole

  • To install The Process class relies heavily on proc_open, which is not availab PHP functions proc_open and proc_get_status in php.ini can be enabled in composer to install Drupal8

🎉 summary

The main purpose of this blog is to document two of the problems I encountered when choosing the most stable version of an environment installation, but compatibility issues can arise when choosing the latest framework.

My technical ability is limited, if there is a wrong place to write, please leave a message as if correct, very thank 🙇

If your problem is not solved, first of all, I am very sorry for your time. You can leave a message in the comments section below, and I will reply to 🙍♂️ as soon as I see it