Drupal: Unterschied zwischen den Versionen

Aus Free Software
Zur Navigation springen Zur Suche springen
Zeile 5: Zeile 5:
 
All configuration (including uploaded files and possibly modules/themes that are only installed for one site) is located in <code>sites/<domain>/</code>. Modules available to all sites are available in <code>sites/all/</code>. The latter is also the default location where drush installes modules and themes.
 
All configuration (including uploaded files and possibly modules/themes that are only installed for one site) is located in <code>sites/<domain>/</code>. Modules available to all sites are available in <code>sites/all/</code>. The latter is also the default location where drush installes modules and themes.
  
'''Domain aliases:''' If you want to make the same site available under two domains (e.g. like currently jabber.at, jabber.zone etc. are all the very same Drupal configuration), use <code>sites/sites.php</code>.
+
'''Domain aliases:''' If you want to make the same site available under two domains (e.g. like currently jabber.at, jabber.zone etc. are all the very same Drupal configuration), use <code>sites/sites.php</code>. Note that this is not necessary for "www."-style subdomains.
  
 
== Drush cheatsheet ==
 
== Drush cheatsheet ==

Version vom 17. Juli 2015, 12:33 Uhr

The source code for Drupal is stored in /var/src/drupal. Every domain hosted has to have a symlink to it in /var/www/<domain> (since Apache assumes the DocumentRoot is there).

Multiple sites

All configuration (including uploaded files and possibly modules/themes that are only installed for one site) is located in sites/<domain>/. Modules available to all sites are available in sites/all/. The latter is also the default location where drush installes modules and themes.

Domain aliases: If you want to make the same site available under two domains (e.g. like currently jabber.at, jabber.zone etc. are all the very same Drupal configuration), use sites/sites.php. Note that this is not necessary for "www."-style subdomains.

Drush cheatsheet

Update Drupal core, contrib projects and update database

drush up

Run updatedb for specific site

drush -l updatedb