Hello. Quick question - what is the difference between /modules and /sites/all/modules?

I've always put my modules in /modules, but recently heard someone advise to put them in /sites/all/modules. A little searching seems to say that /sites/all/modules will work on all sites within a multi site environment...but wouldn't /modules do the same?! Is there a preference between the two?

Thanks in advance!
[bunnyfly]

Comments

neel’s picture

I use /sites/all/modules to keep new addon modules. This helps me to keep my site admin clean and I don't have to think more about modules when I wish to upgrade to newer version of Drupal.

if we pun new addon modules in that module folder then we get confuse. so its better to keep Drupal's default setting clean and use /sites/all/modules and /sites/all/themes for your flavor.

bunnyfly’s picture

Thanks a lot for the advice. It sounds like a good idea!
[bunnyfly]

jordibares’s picture

I believe there is some tidy up to do as it is very inviting to have the modules folder in the root rather than deep down 3 levels and needing to create the folder itself.