To help Magento developers get to know the latest Magento 2 alpha 106, today, we would like to walk you through the steps needed when installing the latest version of this leading eCommerce platform.
Feel free to embed and share this infographic on your site, copy and paste the code below:
<img src="https://static.ubertheme.com/blog/dec2014/install/setup_magentoS.jpg" width="540"><p>How to install Magento 2.0 (alpha version)<a href="http://www.ubertheme.com">UberTheme.com</a>
I. System requirements
Before you install Magento 2, make sure your system meets or exceeds the following requirements:
- Operating systems : Linux distributions such as RedHat Enterprise Linux (RHEL), CentOS, Ubuntu, Debian, and so on
- Composer (latest stable version)
- Apache 2.2 or later
- PHP 5.4.11 or later or PHP 5.5.x.
Note: Magento 2 does not support PHP 5.6.
- Required PHP extensions:
- gd2, ImageMagick 6.3.7 (or later) or both
- MySQL 5.6.x
- Mail Transfer Agent (MTA) or an SMTP server
- Optional but recommended:
- php_xdebug2.2.0 or later (development environments only; can have an adverse effect on performance)
- PHPUnit (as a command-line tool) 4.1 or later
When you are done with verifying your prerequisites, follow the steps below to install Magento 2.
1. Install composer
You can use Composer to install Magento 2. It is a tool for dependent management in PHP which allows you to declare the dependent libraries your project needs and install them for you. Composer enables you to manage Magento 2, extensions, and their dependencies.
Here are the key advantages for using Composer:
- Easy to integrate third-party components into the code base
- Component-based architecture with robust dependency management
- Reduce extension conflicts and compatibility issues
- Versioned dependencies, semantic versioning
- Supports PHP Framework Interoperability standards
- An alternative to Pear packaging system
Now, download Composer and run its latest version. For more details on further configuration when installing composer, please visit this Composer installation documentation.
Follow the 6 steps below to start Composer installation
Step 1 : Composer Setup
Step 2 : Select Composer
Step 3 : Check PHP and path settings
Step 4 : Ready to install
Step 5 : Turn off all window explorer and retry
Step 6 : Finish
2. Clone the Magento 2 Git hub Repository
Here is how you clone the Magento 2 GitHub repository:
- Change to your web server’s docroot directory.
- Enter commands to write to the web server docroot.
Make sure you have correct access rights and the repository exists.
- Wait for the repository to clone on your server.
In case you get an error that includes
Permission denied (publickey), see Troubleshooting.
3.Install/reinstall Magento 2.0
3.1 Change file system permissions and ownership before installation
To make sure the installation completes successfully, we suggest the following file system permissions and ownership:
- All files and directories owned by the web server user.
- Certain directories must be writable.
3.2 Update Composer and run the installer
After you are done with updateing the file system permissions and ownership, go onto update Composer and run the installer:
Open Command Prompt on Windows, then update composer on Magento 2.0 root folder and setup sub directory as follow:
3.3 Create Data Base
Open PHPmyadmin, then create Data base for Magento 2.0
3.4. Magento installation
Follow the 7 steps below to start your Magento installation
Step 1 : Agree and Setup
Step 2 : Verify System requirements
Step 3 : Verify System requirements (cont)