chmod a+x ./bin/magento
mysql -uroot -e'drop database if exists magento2_example; create database magento2_example'
./bin/magento setup:install --admin-firstname=torrey --admin-lastname=tsui --admin-email=email@email.com --admin-user=admin --admin-password=magento123 --db-name=magento2_example --db-user=root
If css or images files are missing, execute php bin/magento setup:static-content:deploy
to generate them.
The installation instructions that used to be here are now published on our GitHub site. Use the information on this page to get started or go directly to the guide.
If you're not sure about the following, you probably need a little help before you start installing the Magento software:- Is the Magento software installed already?
- What's a terminal, command prompt, or Secure Shell (ssh)?
- Where's my Magento server and how do I access it?
- What's PHP?
- What's Apache?
- What's MySQL?
Use the following table to verify you have the correct prerequisites to install the Magento software.
Prerequisite | How to check | For more information |
---|---|---|
Apache 2.2 or 2.4 | Ubuntu: apache2 -v CentOS: httpd -v |
Apache |
PHP 5.5.x or 5.6.x | php -v |
PHP Ubuntu PHP CentOS |
MySQL 5.6.x | mysql -u [root user name] -p |
MySQL |
After verifying your prerequisites, perform the following tasks in order to prepare to install the Magento software.
- Update installation dependencies
- Install Magento:
- Verify the installation
To learn about how to make a contribution, click here.
To learn about issues, click here. To open an issue, click here.
To suggest documentation improvements, click here.