wiki:DrupalServer

Version 18 (modified by admin, 4 years ago) (diff)

--

Drupal8

  • apt-get install php5-gd php5-mysql ca-certificates apache2-mpm-prefork

Nick

From .tar.gz:

  • wget http://ftp.drupal.org/files/projects/drupal-8.0.0-rc1.tar.gz
  • cd /var/www/html/
    • tar -xzf ~/drupal-8.0.0-rc1.tar.gz

Change domain name in /var/www/html/drupal8/core/lib/Drupal/Core/DrupalKernel.php's initializeRequestGlobals(): $base_url="http://anacostia.faikvm.com";

Add the following after the line use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; in /var/www/html/drupal8/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php:

/* for CiviCRM Views Module. -- JEL */

use Symfony\Component\DependencyInjection\Exception\RuntimeException;
use Symfony\Component\Config\Resource\FileResource;
use Symfony\Component\Yaml\Exception\ParseException;
use Symfony\Component\Yaml\Parser as YamlParser;
use Symfony\Component\ExpressionLanguage\Expression;

Broken

From git:

  • cd /var/www/html
    • git clone https://github.com/drupal/drupal.git drupal8

Common

  • mkdir /var/www/html/drupal8/sites/default/files
  • chown www-data.www-data /var/www/html/drupal8/sites/default/files
    • ensure settings.php and default.settings.php exist, and are owned by www-data.www-data.
      • add the following configuration changes, in the appropriate places:
        $settings['reverse_proxy'] = TRUE;
        $settings['reverse_proxy_addresses'] = array('172.16.0.1', '10.0.2.51');
        
  • chown www-data.www-data /var/www/html/drupal8/sites/default
  • enable clean URLs.
    RewriteEngine on
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ drupal8/?q=$1 [L,QSA]
    

CiviCRM

  • mkdir /var/www/html/drupal8/libraries

Nick

  • cd /var/www/html/drupal8/libraries
    • wget http://dist.civicrm.org/by-date/latest/master/civicrm-4.7.beta1-drupal-20151103.tar.gz
    • tar -xzf civicrm-4.7.beta1-drupal-20151103.tar.gz
    • rm -rf /var/www/html/drupal8/libraries/civicrm/drupal

Broken

From git:

  • cd /var/www/html/drupal8/libraries
    • git clone https://github.com/civicrm/civicrm-core

CiviCRM-Drupal

From git:

  • cd /var/www/html/drupal8/modules/
    • sudo git clone -b 8.x-master http://github.com/civicrm/civicrm-drupal.git civicrm

Themes

  • mayo-8.x-1.0-rc3.tar.gz