Magento2 : how to reinstall magento setup?
Asked Answered
I

3

15

I am installing magento2 with sample-data. all requirement is completed and the Magento installation process starts but stops after some process.

I have to wait for the complete installation process but nothing happens. so I need to restart my magento2 set-up.

how it can be done? any have an idea for reinstall the Magento set-up without deleting the current code.

Thanks.

Islamize answered 19/9, 2015 at 6:33 Comment(5)
Did you try the installation using the command line or did you use the web interface? What error did you see on screen or in the error logs? The causes of a failed installation are diverse. Could be a lack of missing one of the prerequisites - see github.com/magento/magento2 , could be too little memory, missing files. You need to narrow things down. Please add more information.Waal
I am use web interface for installation and no error are displaying. file permision and system required is complete. it just displaying instling proess. how i can restart my magento setup ?Islamize
Post the relevant (php) error log results please. This will help us see what went wrong. Also check php.ini for amount of memory available and post here in your question.Waal
Can you please tell me how to restart magento setup again from first step ?Islamize
magento previeos version for reinstall setup we do rename local.xml so what is for magento 2 for this prosess.Islamize
G
25

Use the new Magento CLI -

From the Magento Root Directory ./bin/magento setup:uninstall

Note: this will delete your database contents if you had one already set up.

Gummous answered 22/9, 2015 at 17:18 Comment(2)
what is the "."? I added mage/bin to path but I get 'magento' is not recognized as an internal or external command, or if I use this code - '.' is not recognized as an internal or external commandCherida
in your root magento "php bin/magento setup:uninstall"Romanticism
W
17

Magento 2 specific tip found here: Delete contents of var/cache and var/generation and try again. And it is probably also good to remove the app/etc/config.php and app/etc/env.php to do a fresh install according to comment made here.

PS Always good to backup all before doing anything radical.

Waal answered 19/9, 2015 at 6:55 Comment(2)
it is for magento previous version i need to do for magento2Islamize
got solution will inform it is work for me or not. rename app/etc/config.php and app/etc/env.php file.Islamize
I
13

It was solved removing the var/generation folder. It is also important to remove the app/etc/config.php and app/etc/env.php to do a fresh install.

Islamize answered 19/9, 2015 at 7:18 Comment(3)
Great to here my suggested solution worked. Please select is as the solution and upvote it. Thanks. Actually there was no need to answer your answer this way as you only stated that the solution mentioned was working for you. A comment will do.Waal
but i have find soltion before your suggestion. i have find solution by phpStorm local history functionality after i have try both file rename and restart my setup.Islamize
Ok. Sure. Then an upvote would still be appreciated. I do think I made an effort to help you out. But it is up to you.Waal

© 2022 - 2024 — McMap. All rights reserved.