Linux requirements
1. Install platform-specific dependencies:
sudo apt install \
libcurl4-openssl-dev \
libonig-dev \
libjpeg-dev \
libjpeg8-dev \
libjpeg-turbo8-dev \
libpng-dev \
libicu-dev \
libfreetype6-dev \
libzip-dev \
libssl-dev \
build-essential \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
libssl-dev \
libxml2-dev \
libxslt1-dev \
libonig-dev \
php-cli \
php-bz2 \
pkg-config \
autoconf \
libsodium-dev \
cmake \
php2. Install Docker
You can follow the official installation guide from Docker or use commands below:
3. Install PHPBrew
To install PHPBrew on Linux you will need to follow installation instructions or use commands below:
4. Prepare the environment
To work with Magento you need access keys to access the Magento repository.
Generate Access Keypair
Now you have a public key and private key values.
To use them you have 2 options:
Use
COMPOSER_AUTHenvironmental variableThis option is used as a global variable on your machine.
Replace
<public key>and<private key>with your public and private key.Add the result to your
.bashrcor.zshrcand reload your terminal.Use auth.json file
This option is used on a per-project basis, so your credentials will be always correct no matter which project you are working on.
Create
auth.jsonfile in the root of your project and inside put the following content using the same<public key>and<private key>you obtained before:
5. Start your application
Last updated