Skip to content

Instantly share code, notes, and snippets.

@ryaan-anthony
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save ryaan-anthony/c030580ba508d5a001ab to your computer and use it in GitHub Desktop.

Select an option

Save ryaan-anthony/c030580ba508d5a001ab to your computer and use it in GitHub Desktop.

1. Download Magento 2

    git clone https://github.com/magento/magento2.git
Navigate to magento2 directory...
    cd magento2
...or 'unpack' magento2 directory
    mv magento2/* .
Set Permissions
    find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;

2. Run Composer

    composer install

3. (optional) Sample data

  1. Add magento's package repository to composer:

     composer config repositories.magento composer http://packages.magento.com
    
  2. Tell composer to find the latest sample data:

     composer require magento/sample-data:~0.74.0-beta16
    
  3. Make sure 'Use Sample Data' is checked off during step 4 of the web installer.

4. Run web installer

Go to yourdomain.com/setup

5. Deploy theme

    php bin/magento setup:static-content:deploy
@ryaan-anthony
Copy link
Author

Known issues:

  1. Magento recommends that the files are owned by web server.

    chown -R [your web server user name] .
    
  2. Use a proper domain:

  • Domains with a user directory (eg. /~username/) aren't worth the hassle (sessions, rewrites, etc)
  • If running Magento from a path, make sure to set RewriteBase in .htaccess
  • Magento has issues recognizing 'localhost'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment