Ubuntu 9.10 (Karmic Koala)

Last modified: November 21, 2009 - 12:11

There is a Drupal package in Ubuntu, so Drupal install on Ubuntu is just this line
sudo apt-get install drupal6

For the actual state of the Drupal packages in Ubuntu repository, check this site:
https://launchpad.net/ubuntu/+source/drupal6
The Debian repository is: http://packages.qa.debian.org/d/drupal6.html

The Drupal libraries are placed in the file system, as used to be in Linux:

  1. /usr/share/drupal6
  2. Most of the Drupal staff is here, the rest are symlinked to this directory, so it's the Drupal root directory

  3. /var/lib/drupal6
  4. The /files directory

  5. /etc/drupal/6
  6. The .htacces, /sites and /profiles directories

  7. /var/www
  8. A symlink is here, pointing to Drupal root (/usr/share/drupal6)

As this directory layout structure is not the recommended one from the Drupal community, use this install scenario just for testing Drupal, but please note: any updates will be difficult. See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526970

Or use Drupal in virtual machines, and it's a quick way to get Drupal up and running.

Then - at the time of writing this post - some more steps are necessary to get Drupal running:

  1. enable the rewrite module and restart Apache:
  2. sudo a2enmod rewrite
    sudo /etc/init.d/apache2 restart

  3. change the rewrite base in /etc/drupal/6/htaccess
  4. from this one:
    # RewriteBase /drupal
    to this:
    RewriteBase /drupal6
    sudo sed -i 's/# RewriteBase \/drupal/ RewriteBase \/drupal6/' /etc/drupal/6/htaccess

  5. optional: increase PHP memory:
  6. sudo sed -i 's/memory_limit = 16M/memory_limit = 64M/' /etc/php5/apache2/php.ini

  7. optional: if you want to access Drupal over the network, then edit your DNS settings or add this line to /etc/hosts on your client:
  8. sudo su
    echo "192.168.2.10 www.example.com" >> /etc/hosts

    where change 192.168.2.10 to the IP address of your Drupal machine

  9. open your browser and start the install process of Drupal:
  10. if you are on the same host then:
    http://127.0.0.1/drupal6/install.php
    if you have done the previous point then:
    http://www.example.com/drupal6/install.php

problem

petrope - November 13, 2009 - 15:27

petrope@petrope:~$ sudo a2enmod rewrite
[sudo] password for petrope:
ERROR: Module rewrite does not exist!
petrope@petrope:~$

it seems to easy, but not for everyone.

Can sbody help me?

Error while installing on Ubunto 9.10 (http://www.example.com)

sridharpandu - November 16, 2009 - 12:47

I get the following error when I visit the above URL

Not Found

The requested URL /drupal6/install.php was not found on this server.
Apache/2.2.3 (Red Hat) Server at www.example.com Port 80

ACER Travelmate 2403NWXCi (Intel Celeron 1GB RAM)
Ununtu 9.10
Drupal 6

Resolved : Error while installing on Ubunto 9.10 (http://www.exa

sridharpandu - November 16, 2009 - 13:00

Got it

If you are installing on your local machine type http://127.0.0.1/drupal6/install.php

"localhost" instead of the ip address might also work.

ACER Travelmate 2403NWXCi (Intel Celeron 1GB RAM)
Ununtu 9.10
Drupal 6

I've change the descrition,

doka - November 21, 2009 - 11:02

I've change the description, thanks for the hint.

Doka

 
 

Drupal is a registered trademark of Dries Buytaert.