Linux requirements

1. Install platform-specific dependencies:

Since magento-scripts 1.4.0 CMA will also check installed dependencies before starting the application, and if they are missing will provide instructions on how to install them!
Ubuntu
Linux Mint
CentOS
Fedora
Arch Linux
1
apt-get install \
2
libcurl4-openssl-dev \
3
libonig-dev \
4
libjpeg-dev \
5
libjpeg8-dev \
6
libjpeg-turbo8-dev \
7
libpng-dev \
8
libicu-dev \
9
libfreetype6-dev \
10
libzip-dev \
11
libssl-dev \
12
build-essential \
13
libbz2-dev \
14
libreadline-dev \
15
libsqlite3-dev \
16
libssl-dev \
17
libxml2-dev \
18
libxslt1-dev \
19
libonig-dev \
20
php-cli \
21
php-bz2 \
22
pkg-config \
23
autoconf \
24
libsodium-dev
Copied!
1
apt-get install \
2
libjpeg-dev \
3
libjpeg8-dev \
4
libjpeg-turbo8-dev \
5
libpng-dev \
6
libicu-dev \
7
libfreetype6-dev \
8
libzip-dev \
9
libssl-dev \
10
build-essential \
11
libbz2-dev \
12
libreadline-dev \
13
libsqlite3-dev \
14
libssl-dev \
15
libxml2-dev \
16
libxslt1-dev \
17
libonig-dev \
18
php-cli \
19
php-bz2 \
20
pkg-config \
21
autoconf \
22
libcurl4-openssl-dev \
23
libsodium-dev
Copied!
1
yum install --enablerepo=PowerTools \
2
openssl-devel \
3
libjpeg-turbo-devel \
4
libpng-devel \
5
gd-devel \
6
libicu \
7
libicu-devel \
8
libzip-devel \
9
libtool-ltdl-devel \
10
oniguruma-devel \
11
libsodium \
12
libsodium-devel
Copied!
1
yum install openssl-devel \
2
libjpeg-turbo-devel \
3
libpng-devel \
4
gd-devel \
5
libicu \
6
libicu-devel \
7
libzip-devel \
8
libtool-ltdl-devel \
9
oniguruma-devel \
10
libsodium \
11
libsodium-devel
Copied!
1
pacman -S freetype2 \
2
openssl \
3
oniguruma \
4
libxslt \
5
bzip2 \
6
libjpeg-turbo \
7
libpng \
8
icu \
9
libxml2 \
10
autoconf \
11
libzip \
12
sqlite \
13
readline \
14
perl \
15
libsodium
Copied!

2. Install Docker

You can follow the official installation guide from Docker or use commands below:
1
# Download installation script
2
curl -fsSL https://get.docker.com -o get-docker.sh
3
4
# Run installation script
5
sudo bash get-docker.sh
6
7
# Add your user to the “docker” group to run docker without root.
8
sudo usermod -aG docker $USER
9
10
# After that you'll need to logout and login to your account or,
11
# you can temporarily enable group changes by running command below
12
newgrp docker
Copied!

3. Install PHPBrew

Since [email protected] this part will be done automatically.
To install PHPBrew on Linux you will need to follow installation instructions or use commands below:
1
# Download PHPBrew
2
curl -L -O https://github.com/phpbrew/phpbrew/releases/latest/download/phpbrew.phar
3
4
# Make it executable
5
chmod +x phpbrew.phar
6
7
# Move PHPBrew binary to system folder.
8
sudo mv phpbrew.phar /usr/local/bin/phpbrew
9
10
# Initialize PHPBrew
11
phpbrew init
Copied!

4. Prepare the environment

4.1 Use auth.json

Some projects have different authentication keys for repositories, so you can use auth.json file in the root of your project and put credentials inside this file. CMA will handle everything from here.
Learn more about composer authentication per project here.

4.2 Use COMPOSER_AUTH environmental variable

COMPOSER_AUTH is an environment variable that is used to authenticate your Magento project on Magento Composer Repository which contains Magento dependencies. To obtain it:
    1.
    NOTE: you have to be authorized.
    2.
    Generate Access Key pair.
    3.
    Replace <public key> and <private key> with your public and private key.
    1
    export COMPOSER_AUTH='{
    2
    "http-basic":{
    3
    "repo.magento.com": {
    4
    "username": "<public key>",
    5
    "password": "<private key>"
    6
    }
    7
    }
    8
    }'
    Copied!
    4.
    Add result from steps above to your .bashrc or .zshrc.
    5.
    Reload terminal.

5. Start your application

Start command description can be found here.
Last modified 3mo ago