Building, installing and updating Drupal 8

  • Apache httpd 2.2.15
  • PHP 7.0.8
  • PostgreSQL 9.5.3
  • Drupal 8.1.3



./configure --prefix=/usr/local/postgresql-9.5.3
+make install
+re-link in /usr/local


./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr/local/php-7.0.8 --with-pdo-pgsql=/usr/local/postgresql --disable-cli --disable-phpdbg --disable-ipv6 --with-gd --enable-mbstring
+make install
+re-link in /usr/local

The above installation puts the modules for httpd into the default location for the standard httpd product. It also patches the /etc/httpd/conf/httpd.conf to try to load the PHP7 module. This conflicts with the already-installed PHP module for an earlier version of PHP. To de-fang this latter:

  • Wrap the relevant LoadModule line in a dummy <IfDefine> to prevent it actually being loaded. Commenting the line is not sufficient because subsequent make install invocations will put it back.

Drupal 8

  • Needs RewriteBase / uncommented in top-level's .htaccess file.

Needs the following in settings.php:

$settings['trusted_host_patterns'] = array(