Hi

I have just dumped my windows system for a pure Ubuntu OS, so my question is simple i hope how do i install modules on the Ubuntu OS i know this is a lame question but this OS is all new to me.

Thanks

S

Comments

add1sun’s picture

you would install them the same way that you do on any other system. you need to put the modules in your sites/default(or all)/modules folder wherever drupal is installed.

if you have drupal installed you should already know where it is on your computer.

anthonylicari’s picture

Yeah I'm not a webmaster but stumbled across this and use Ubuntu quite a bit. I use gFTP to transfer all my files. You can install that with Synaptic Package Manager.

.carey’s picture

Like add1sun said, you just need to put it in the appropriate folder. You don't need to use gFTP since it's local; just copy and paste the entire module folder where it belongs and then go to your Drupal site and install it.

SHonour’s picture

Thanks everyone but i must be a little dim i did the install of drupal using

SUDO apt-get install drupal-5.1

used the wizard and all is well but i don't knwo where the install folder is i know this is lame but i have been using windows for the last forever and teaching myself Linux is proving a hard task I hope you can help?

Thanks

Stuart

add1sun’s picture

Huh, I didn't know you could apt-get drupal 5.1. For the record, I wouls ALAWAYS manually install Drupal so you know what is what and how to do your own upgrades. That said, I haven't been on my Ubuntu machine in a while but I believe all your localhost files will be in /var/www.

A handy tip (other than Google) is to do sudo updatedb and then you can use the locate command to find things on Ubuntu, so you can do e.g. locate drupal.

SHonour’s picture

Status: Active » Closed (fixed)

Thanks will look at that when i get home tonight

tomthumb99’s picture

Component: User Guide » Correction/Clarification

Folks,

I have been loading new modules into var/www/drupal/modules just fine, but one question on chmode. I have been using root to copy over the files, and all works on the activated from the drupal admin menu. But, what should the file ownership and protection be to avoid later complications.

Thanks,

Simon Naude’s picture

Issue tags: +link, +Drupal, +where, +/var/www/drupal

On Ubuntu 10+, the command sudo apt-get install drupal# (where hash is >=5) will install drupal in /usr/share/drupal#. To make it appear in /var/www/drupal#, do this : sudo ln -s /usr/share/drupal#/ /var/www/drupal# && ls -A1hF /var/www. You should see 'drupal#' (sans quotes) listed in /var/www as a link.

mpacey’s picture

The correct way to install modules (and themes) in Debian and Ubuntu is documented in /usr/share/doc/drupal6/README.Debian.gz.

To view it:

user@server:/usr/share/doc/drupal6$ less README.Debian.gz

Drupal for Debian
-----------------

1. Introduction
2. Manual initial database generation and configuration
3. Enabling access in Apache
4. Database population script
5. Deleting the Drupal database
6. Changes to Apache 2 configuration
7. Securing your portal
8. Upgrading database from previous versions
9. Virtual hosts
10. Additional themes and modules
11. Privacy of session cookies

A. Customizing themes
B. Links for more support

Looking at section 10:

10. Additional modules and themes
--------------------------------

Drupal looks for modules and themes in the modules/ and themes/
subdirectories, respectively. However, it would be a bad idea to put
additional modules and themes into those directories because they
might be overwritten on upgrades.
Instead, create links to another
directory that won't be touched by dpkg, e.g. in the /usr/local
hierarchy:

 # ln -s /usr/local/share/drupal/modules /usr/share/drupal6/modules/local
 # ln -s /usr/local/share/drupal/themes /usr/share/drupal6/themes/local

(my emphasis)

You'll need to create the directories in /usr/local/share/drupal:

# cd /usr/local/share/drupal
# mkdir themes modules

Then you can put your modules in /usr/local/share/drupal and not worry about them conflicting with system updates.

Hope that helps someone!

Michael