Skip to content

Instantly share code, notes, and snippets.

@aarthiathi
Last active April 20, 2017 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aarthiathi/52d0b32196688f6e18d57b288d449e9f to your computer and use it in GitHub Desktop.
Save aarthiathi/52d0b32196688f6e18d57b288d449e9f to your computer and use it in GitHub Desktop.
Magento Error during theme creation - already defined module
I ran into this error because i had downloaded the magento from the github, which already had many definitions predefined and got stuck up in the middle with the error - Module already defined.
I did some online search and found that some experts had adviced not to pull the magento folder which already has all the definitions pre defined.
So i had to begin from the start
Download the magento from the magento2 repo.
You will be asked for the credentials, for that, you have to create a public key( username) and private key ( password).
Using the credentials ,run the following command in root directory.
>composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition
( I have created this write up based on the fact that you have already downloaded composer) - IF NOT - GOTO B
Then change the folder and files permission of the downloaded magento,
>find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;
Create The Database
using cli
>/Applications/MAMP/Library/bin/mysql --host=localhost -uroot -proot
mysql> CREATE DATABASE <magentoDb>;
That’s about it! You can now follow the installation wizard or use the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment