Last active
May 11, 2018 14:53
-
-
Save anton-huz/1820005c7b54cb1d31c92ec0708d78bb to your computer and use it in GitHub Desktop.
Magento instalation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # mysql -uroot -p | |
| # CREATE DATABASE `magento_local` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| # GRANT ALL PRIVILEGES ON magento_local.* TO magento@localhost IDENTIFIED BY 'magentoPass'; | |
| # GRANT SELECT, INSERT, UPDATE, DELETE, \ | |
| # CREATE, DROP, REFERENCES, INDEX, ALTER, \ | |
| # CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, \ | |
| # CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, \ | |
| # EVENT, TRIGGER \ | |
| # ON `magento_local`.* \ | |
| # TO magento@"localhost" IDENTIFIED BY 'magentoPass'; | |
| # php composer install | |
| # sudo chown -R www-data:www-data var generated pub/static pub/media | |
| sudo -H -u www-data php bin/magento setup:install \ | |
| --base-url="http://magento.local/" \ | |
| --backend-frontname="b" \ | |
| --db-host="localhost" \ | |
| --db-name="magento_local" \ | |
| --db-user="magento" \ | |
| --db-password="magentoPass" \ | |
| --language="en_US" \ | |
| --timezone="UTC" \ | |
| --currency="GBP" \ | |
| --use-rewrites="1" \ | |
| --use-secure="1" \ | |
| --admin-user="admin" \ | |
| --admin-password="123123q" \ | |
| --admin-email="[email protected]" \ | |
| --admin-firstname="A" \ | |
| --admin-lastname="B" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo chown -R www-data:www-data \ | |
| app/etc \ | |
| var \ | |
| generated \ | |
| pub/static \ | |
| pub/media | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE `magento_local` CHARACTER SET utf8 COLLATE utf8_general_ci; | |
| GRANT ALL PRIVILEGES ON magento_local.* TO magento@localhost IDENTIFIED BY 'magentoPass'; | |
| GRANT SELECT, INSERT, UPDATE, DELETE, \ | |
| CREATE, DROP, REFERENCES, INDEX, ALTER, \ | |
| CREATE TEMPORARY TABLES, LOCK TABLES, EXECUTE, \ | |
| CREATE VIEW, SHOW VIEW, CREATE ROUTINE, ALTER ROUTINE, \ | |
| EVENT, TRIGGER \ | |
| ON `magento_local`.* \ | |
| TO magento@"localhost" IDENTIFIED BY 'magentoPass'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment