How to install Drupal on a Ubuntu System

I know, there are probably one million how-tos on the subject out there, but I am going to make it as short as I can; it's not supposed to be a step-by-step guide, but a motivation for advanced Linux users who want to try out Drupal.

Such a Drupal Content Manageing System running on a Apache Server on Ubuntu Linux (or similar distros) consists of four main components:

  • Apache2
  • PHP5
  • MySQL
  • Drupal6

First of all, you have to apt-get all required packages:

sudo apt-get update
sudo apt-get install apache2 php5 php-mysql mysql-server drupal6

After answering the questions about root-user passwords, admin passwords, etc. all the required files will be configured and stored on your computer.

Now lets link the Apache-configuration file given by Drupal to /etc/apache2/sites-enabled so that the Apache server can find Drupal:

sudo ln -s /etc/drupal/6/apache.conf /etc/apache2/sites-enabled/drupal

Afterwards, visit http://localhost/drupal6/install.php in your web-browser and fill out information like site-name, administrator email, etc.

And now you should have your own Drupal-managed homepage running at http://localhost/drupal6!