Translation(s): none

Details about using Drupal7 with Debian


apt-get install drupal7

During installation you may optionally choose to have the database created as well. Choose this unless you will be importing an existing site.

Creating a MySQL database and user manually

This step is only needed if you are importing an existing SQL database.

Adding a single site

If you only have one site that you wish to use with this installation (with potentially multiple domains) then activate the default drupal7 config file with the command :

a2enconf drupal7

Reload Apache, after which the site will be available at

Adding multiple sites with virtual hosts

If you wish to use this installation with more than one site, it is probably best to create a separate configuration for each site:

Clean URLs

If you want to use clean URLs, first enable the rewrite module:

a2enmod rewrite
service apache2 reload

Then edit /etc/drupal/7/htaccess and uncomment the relevant ?RewriteBase rule:

RewriteBase /drupal # If running under a /drupal URL
RewriteBase /       # If running under a dedicated domain

Adding custom themes and modules

Copy any custom themes or modules into /usr/local/share/drupal/themes or /usr/local/share/drupal/modules, then symlink into the required site. For example:

ln -s /usr/local/share/drupal/themes/mytheme /usr/share/drupal7/themes/mytheme

Adding translations

Download translation file from and put it in /usr/share/drupal7/profiles/minimal/translations/.

So you can start your installation in your language.

See Also