I would like to do a little maintenance on my old first Drupal site, putting things where they should be etc.

My question is:

If you have a site that you have put non core modules in the modules folder and you would like to move them to your sites/all/modules folder where they should be, can you do this after they have already been activated?

public_html/modules/your_module

move to

public_html/sites/all/modules/your_module

Can you do that on the fly or close the site for maintenance then move it? Are their problems with moving them?

Comments

gpk’s picture

Best way is to disable the modules in question, then move the relevant folders/files, then visit the modules admin page again (Drupal will auto-discover them at the new location), then re-enable.

gpk
----
www.alexoria.co.uk

mikeybusiness’s picture

Great! Thank you gpk.

PhilGillis’s picture

I discovered sites/all after I had installed 5.7 and played with a few things . .I went ahead and moved everything into those folders and BOOM! . .since then I have learned the art of the rapid re-install. It really didnt take long to learn from my mistake. I am digging learning this stuff.