git clone https://github.com/magento/magento2.git
cd magento2
mv magento2/* .
find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;
composer install
-
Add magento's package repository to composer:
composer config repositories.magento composer http://packages.magento.com -
Tell composer to find the latest sample data:
composer require magento/sample-data:~0.74.0-beta16 -
Make sure 'Use Sample Data' is checked off during step 4 of the web installer.
Go to yourdomain.com/setup
php bin/magento setup:static-content:deploy
Known issues:
Magento recommends that the files are owned by web server.
Use a proper domain: