Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento2 : how to reinstall magento setup?

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.

like image 200
Suresh Chikani Avatar asked Sep 19 '15 06:09

Suresh Chikani


3 Answers

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.

like image 97
SpaceJam Avatar answered Oct 18 '22 02:10

SpaceJam


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.

like image 23
rhand Avatar answered Oct 18 '22 01:10

rhand


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.

like image 13
Suresh Chikani Avatar answered Oct 18 '22 03:10

Suresh Chikani