Magento is the most popular and trusted e-commerce software used by brands across the Globe. With the release of Magento 2.0 there has been an architectural change, changing the way things work. If you are planning to install Magento 2.0 on a Shared Hosting for the first time, this guide will help you through the options available.
System Requirements of you Shared Hosting
- Linux Hosting
- PHP 5.5.22 or greater (5.6 recommended)
- MySQL 5.6
Refer Magento Guide for the complete list of System Requirements.
Installation Options for Magento 2.0 on Shared Hosting
Installing via Software Installer:
This is the simplest, easiest and the automated way of installing Magento 2.0.
- Navigate to software installers (AutoInstaller) on your cPanel.
- Select Magento Choose the required version (greater than 2.0)
- Fill in the required details and begin the installing.
- Your store is ready to use.
Software installer would take care of database creation, and other installation settings.
Installing via archives from Magento Commerce Downloads
Installing via archives is another simple way for installing Magento 2.0.
- Navigate to magentocommerce downloads and download the package (with or without sample data) in the required format. Magento provides archives in various formats (.zip, .tar.gz, .tar.bz2)
- Upload the archive on your hosting space via ftp or file manager.
- Uncompress the archive via file manager and place the files in the appropriate directory.
- Navigate to your URL and start installing.
Installing via composer (Advanced)
This requires basic awareness of Linux commands, and some prerequisites for installation.
- Prerequisites Access to shell (SSH): Shared hosting providers do offer SSH access, with limit functionalities.
- Composer installed: Composer would be required to download all the required files (dependencies) from Magento Repository.
Follow the steps in my previous post Installing Magento 2.0 via Composer for complete installation guide.
Troubleshooting Common Installation errors
- PHP version error: It might be a case that even after choosing a hosting provider offering PHP 5.6 you might get a version error. Make sure the default PHP runtime is set to 5.6 or PHP runtime for your installation directory is set to 5.6