Skip to content

Instantly share code, notes, and snippets.

@Vinai
Created April 25, 2016 12:54
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Vinai/2e7a1052c0900f22a422eff54a804afe to your computer and use it in GitHub Desktop.
Save Vinai/2e7a1052c0900f22a422eff54a804afe to your computer and use it in GitHub Desktop.
Steps I use to install Magento 2 community edition
#!/bin/bash
FOLDER=example
DB_NAME=magento2
DB_USER=m2
DB_PWD=wiener
BASE_URL=http://example.dev/
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition $FOLDER
php -dmemory_limit=-1 bin/magento setup:install --backend-frontname=admin --db-host=localhost \
--db-name="$DB_NAME" --db-user="$DB_USER" --db-password="$DB_PWD" --base-url=http:$BASE_URL \
--use-rewrites=1 --admin-user=admin --admin-password=password123 \
--admin-email=admin@example.com --admin-firstname=Admin --admin-lastname=User \
--use-sample-data --cleanup-database
cd $FOLDER
# Run script from https://gist.github.com/Vinai/69dc72b9f4baa2506120 to set permissions
@Vinai
Copy link
Author

Vinai commented Apr 25, 2016

Prepare a shared group membership before running https://gist.github.com/Vinai/69dc72b9f4baa2506120

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