To create a development environment in fresh install of Linux – Ubuntu 20.04 (Focal Fossa) or 20.10 (Groovy Gorilla) you should meet the requirements listed on Shopware 6 System Requirements. If you are comfortable working with docker, there is a curated docker setup that takes care of setting up the environment for you. In this case you need: PHP 7.2+ CLI, docker, docker-compose, bash.
Use these commands for checking your actual environment, follow the links below if you have something missing.
Check Apache2 version with apache2 -v
, and install Apache2.
$ apache2 -v # OUTPUT Returns an error in fresh install Command 'apache2' not found, but can be installed with: sudo apt install apache2-bin # OUTOUT Returns version of installed Apache2 Server version: Apache/2.4.41 (Ubuntu) Server built: 2020-08-12T19:46:17
Check CLI PHP version with php -v
, and install PHP.
$ php -v # Returns an error in fresh install Command 'php' not found, but can be installed with: sudo apt install php7.4-cli # Returns PHP version PHP 7.4.3 (cli) (built: May 26 2020 12:24:22) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
Check CLI PHP modules with php -m
$ php -m # Returns an error in fresh install Command 'php' not found, but can be installed with: sudo apt install php7.4-cli # Returns List of Modules [PHP Modules] ... [Zend Modules] ...
Check CLI PHP memory limit with php -i | grep memory_limit
$ php -i | grep memory_limit # Returns an error in fresh install Command 'php' not found, but can be installed with: sudo apt install php7.4-cli # Returns memory_limit memory_limit => -1 => -1
Check Composer version with composer -v
, and install Composer.
$ composer -v # Returns an error in fresh install Command 'composer' not found, but can be installed with: sudo apt install composer # Returns version Composer 1.10.1 2020-03-13 20:34:27
Check Node.js version with node -v
, and install Node.js.
$ node -v # Returns an error in fresh install Command 'node' not found, but can be installed with: sudo apt install nodejs # Returns version v10.19.0
Check NPM version with npm -v
, and install NPM.
$ npm -v # Returns an error in fresh install Command 'npm' not found, but can be installed with: sudo apt install npm # Returns version 6.14.4
Have fun!
There are many methods for using APIs. In order to understand it better, lets take…
One way to guard against out-of-memory errors in applications is to add some swap space.…
Docker Compose is a tool that allows you to run multi-container application environments based on…
After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…
After the creation of development environment your setup fulfills the Shopware 6 requirements. If you…
Make sure your Ubuntu is up to date and patched. $ sudo apt update $…