Magento – Recommended way to Install Magento 2 on shared hosting, Composer or archives

composerinstallationmagento2

The Install Guide recommends installing the software using archives (not Composer) for a shared hosting environment.

However, from Magento documentation:

Everyone who uses the Magento software must install Composer to update components and Magento. If you install Magento using an archive, you don't need Composer to install Magento, but you do need Composer for updates.

And from this article:

Attention: Because Composer relies on third-party code, we do not recommend Composer for use on production sites.

Then what is the "best" way to install Magento 2?

Best Answer

I'm not speaking for Magento but it doesn't seem like a good idea in general to install updates on a production site. In addition, we recommend you use the pub folder as your root in production so as to prevent running the Setup Wizard.

Related Topic