Translation(s): none


Status of Drupal in Debian

Drupal is currently not available in Debian. Historically Drupal7 used to exist in Debian 9 (stretch). For the reasoning on why newer versions have not been included, please see the ITP bug report and the blog post Giving up on the Drupal 8 debianization ☹.

Obsolete Information

Details about using Drupal7 with Debian. Please note that Drupal7 is rapidly approaching it's end-of-life. Drupal8 was released in November 2015.

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 yourdomain.com/drupal7

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 https://localize.drupal.org/download and put it in /usr/share/drupal7/profiles/minimal/translations/.

So you can start your installation in your language.

See Also