Update installation dependencies
We use Composer to resolve dependencies before you install the Magento software and extensions.
- Install the Composer software.
- Create the file system owner so Composer can write files to the web server docroot as the correct user.
- Update dependencies in your local root project directory (for example,
The Magento root directory is a subdirectory of your web server's docroot.
If the following error displays, see troubleshooting:
Copied to your clipboardfile_get_contents(app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory
For you to be able to run the Magento application, make sure you perform all tasks as a user with privileges to write to the web server docroot. One way to do this is to log in as or switch to the switch to the file system owner.
Update installation dependencies as follows:
Change to the Magento installation directory and run
composer install. Examples:
CentOS:Copied to your clipboardcd /var/www/html/magento2 && composer install
Ubuntu:Copied to your clipboardcd /var/www/magento2 && composer install
This command updates package dependencies and can take a few minutes to complete.
The following error might display:
Copied to your clipboard1[Composer\Downloader\TransportException]2The "https://repo.magento.com/archives/magento/composer/magento-composer-220.127.116.11.zip" file could not be downloaded (HTTP/1.1 404 Not Found)
If so, create
auth.json in the file system owner's
<home>/.composer directory and run
composer install again.
Set file ownership and permissions#
You must set read and write permissions for the web server group before you install Adobe Commerce or Magento Open Source. It is necessary so that the command line can write to the file system. See file ownership and permissions.
Hooray! You've completed the contributor install. Need more advanced help? Check out our Advanced install guide.