Prerequisite:
- Magento repo access keys
- Mysql Database, username and password
- a domain name pointing to a server
if you dont have access key, get a pair here :
https://marketplace.magento.com/customer/accessKeys/
1 | php -d memory_limit=-1 /bin/composer create-project --repository-url=https: //repo .magento.com/ magento /project-community-edition =2.2.11 ./ |
In the above command, you can change version/subversion of magento repo. You can also change the install directory
After the successful run of above command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | bin /magento setup: install \ --base-url=https: //testmagento .domain.com \ --db-host=localhost \ --db-name=testmage_x1 \ --db-user=testmage_x1 \ --db-password=WEux3dxxxxw \ --admin-firstname=xxx \ --admin-lastname=yyy \ --admin-email=admin@domain.com \ --admin-user=admin \ --admin-password=WwKhxxxxxxEK \ --language=en_US \ --currency=USD \ --timezone=America /Chicago \ --use-rewrites=1 |
YOu will see Magento Admin URI: /admin_10lf7y
after successful run
Next is installing sample data: totally optional
1 | php -d memory_limit=-1 bin /magento sampledata:deploy |
OPtional: install or update composer version
1 | composer self-update --2 |
https://blog.packagist.com/composer-2-0-is-now-available/
https://getcomposer.org/
Leave a Reply