hello all..

I'm obviously a newbe to drupal.. but I managed already to install drupal at my site and to do some basic things. I'm currently playing with different features like adding moduls and themes and I'm a little bit confused of one thing: where do I need to upload my files? at some places I read that a new module or theme should be uploaded to sites/all/modules or sites/all/themes directory while in some other places I read that I should upload it to the mosules or thems directories found in the root directory.

right now I uploaded my new themes and modules to the related directories at the root directory and it seems to be working. so.. am I using the right directories or what? and if so why can i use both places?

thanks in advance,
abdoul

Comments

michelle’s picture

It does _work_ to put them in the root, but it's not ideal as far as keeping things orderly. If you put them in sites/all/themes or sites/yoursite.com/themes it makes it clearer what is for your site in particular and what came with core. This is probably less important for themes because of the small number of them, but it makes a big difference with modules.

Michelle

--------------------------------------
My site: http://shellmultimedia.com

US421’s picture

Hi abdoul, welcome to Drupal!
The purpose of uploading to the sites directory is to keep all non-core files in one place. This comes in handy when it comes time to upgrade. If you need to you can delete all the files and folders except for the sites folder and your configuration and custom files will remain after you have uploaded the new version of Drupal.

You will still need to upgrade all of the contributed modules and themes if it is a major upgrade, but at least you will have all the non-core files in one place for reference.

Otherwise, if you can remember everything that you have added you can use either method.

mango’s picture

Both options will work, but you are advised to put all customised themes in the sites/all/themes folder. Also, contrib modules should go in sites/all/modules.

Consistenly putting your files in the right folder will help you distinguish between basic Drupal files and themes and modules that you have added yourself. When updating or upgrading your site, it will be a lot easier to distinguish between the two, backup and update the correct files.

abdoul’s picture

thanks guys.. that was quick and clear :)

abdoul