By kiwibytes on
Hi,
I mistakenly uploaded new modules of Drupal into the /Drupal/modules folder instead of /drupal/sites/all/modules folder. When I opened the modules list from the administration section, all those new modules were listed there.
I am confused, as I thought the first modules folder is only for default Drupal modules.
What happens if we install new modules in the first folder? Do they work as intended or does it give any problems?
Comments
=-=
they may work as intended but will make upgrading/updating drupal core in the future difficult. Keeping contrib modules and themes in sites/ folder keeps your install organized in such as way as to only have to back up the sites folder when updating/upgrading/backing up your installation.
move the modules
visit administer -> modules and force drupal to reread the .info files included in modules and you should be fine.
Thanks for the quick advice,
Thanks for the quick advice, that clears it all for me :)
The Drupal Police will track
The Drupal Police will track you down by your Internet IP number and throw you in Drupal jail...or at least a time out.
Okay, seriously, nothing bad will happen, and the site will function. It is simply "best practice" to add your contributed modules to the
/sites/all/modulesfolder (which you need to create). Keeps things tidy, and makes it easy for you to backup your customization. Meaning, periodically, you should download your entire/sitesfolder, as that is where you would keep all of your add-on modules, custom themes, libraries, and site files/images.So, in the spirit of best practices, you probably want to move those non-Drupal-core modules to the
/sites/all/modulesfolder. Then, you will want to manually inspect your Systems database table to be sure that references to those add-on modules in the /modules folder are removed, else you will have problems -- Drupal will get confused.If you only just completed a Drupal installation, it might be easier for you to simply start over with a re-install (with all modules in their proper folders) and fresh database. In that case, you would simply create a new database for that installation (don't forget to change the settings.php file to reference that new database), and then just do
http://mysite.com/install.php.Cheers!
http://ItsAboutTyme.com
Thank you! I haven't
Thank you!
I haven't installed any of those contributed modules yet so I think simply moving them from drupal/modules to drupal/sites/all/modules will not be a problem and I won't need to remove any database references.
And I think Drupal jail is not a bad idea ;) Drupal developers will have to go there first for putting in so many bugs )=
=-=
... with a special place in that jail for those who complain without lifting a finger to help. ; )