Hello I would like to know because when I download and install drupal 7

the default themes always come in the following path
public_html/modules/forum
and because it is
public_html/site/all/modules/forum,

but when I enter
mysite.com/#overlay=admin/modules/install
and put the url or upload the file is installed in
public_html/site/all/modules

What I suggest to use?

Comments

roper.’s picture

  • /modules is for core modules ONLY, there is no reason to install other modules there.
  • /sites/all/modules is where you should put new modules. A lot of people will also even create sub-directories in here as well, such as /contrib for Drupal contributed modules, or /mycompany for your company's custom modules for example. The "all" in the path here means that these modules are applicable to all sites you have in your Drupal installation, in case you have a multi-site setup. This is in contrast to:
  • /sites/default/modules or /sites/sub.domain.com/modules which would be for custom modules specific to the given site, not for all sites in a multi-site setup.

So unless you have a multi-site setup, the correct place for modules you download or create is in /sites/all/modules, perhaps in further sub-directories if you wish.

:)

edit: And the same structure goes for themes as well, as you may have guessed.