Skip to content

Instantly share code, notes, and snippets.

@rootindex
Created January 11, 2016 09:42
Show Gist options
  • Save rootindex/b281e5dbda9ebcc7e030 to your computer and use it in GitHub Desktop.
Save rootindex/b281e5dbda9ebcc7e030 to your computer and use it in GitHub Desktop.
Install Magento2 with composer
#!/bin/sh
# specify directory if not in it
composer create-project magento/community-edition .
# Fix file permissions
find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;
# execute if you have not done so in the past
composer config repositories.magento composer http://packages.magento.com
# create db
mysqladmin -udev -pdev create m22
magento setup:install --db-host=localhost --db-name=m22 --db-user=dev --db-password=dev --backend-frontname=admin --admin-user=admin --admin-password=password --admin-email=admin@local.local --admin-firstname=Admin --admin-lastname=Admin --base-url=http://m2.dev/ --base-url-secure=https://m2.dev/ --language=en_US --currency=USD --use-rewrites=1 --use-secure=1 --use-secure-admin=1 --cleanup-database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment