Linux requirements
OpenSSL 3.0 is not supported! PHP introduced support for OpenSSL 3.0 only in PHP 8.1, so you will not be able to compile older versions of PHP if you have OpenSSL 3.0 in your system. Ubuntu 22.04 ships with OpenSSL 3.0, so ATM you will need an older release of Ubuntu of another distro that has OpenSSL 1.1
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!
2. Install Docker
You can follow the official installation guide from Docker or use commands below:
3. Install PHPBrew
Since magento-scripts@1.7.0 this part will be done automatically.
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_AUTH
environmental 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
.bashrc
or.zshrc
and 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.json
file 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