Drupal 8, Drush, Vagrant, PuTTY and Fastly

Popular open source CMS
Post Reply
Site Admin
Posts: 184
Joined: Tue Sep 29, 2009 6:25 pm
Location: Moss Norway

Drupal 8, Drush, Vagrant, PuTTY and Fastly

Post by KBleivik »

1. Drupal 8 is here.

Finally Drupal 8 is here and ready for downloading.
Accessibility for everyone

Drupal 8 ships with extensive support for accessibility standards, and not only for color contrast and font sizes. Semantic HTML5 helps you create interactions—even ones with dynamic content—that are more usable. Plus, Drupal now adopts more WAI-ARIA practices. You can make content structures easier to understand for people with disabilities.
Installation Guide

Before you start installing Drupal 8 that requires PHP 5.5.9 or higher, you should note the following:
This guide covers preparing for installation, running the installation script, and the steps that should be done after the installation script has completed. It also explains how to do a "multi site" installation, where a number of different Drupal sites run off the same code base.

This documentation focuses on performing tasks at the command line. For information on using graphical tools, see the documentation that accompanies the application or is provided by your hosting service. Some web hosting companies also offer "one-click" installations of Drupal, or specific Drupal support.
Note: Drupal 8 includes about 10 times as many files as earlier versions (due to its new framework), that may take significantly longer to upload to a server by FTP than earlier versions. A faster way to upload Drupal 8 as a single ZIP files, suitable for some hosts is described here.
Source: https://www.drupal.org/documentation/in ... wnload#ftp
Note: Since 8.x, Drupal can create the database itself if its database user has enough privileges to create a database, for example the 'CREATE' privilege in MySQL or the 'CREATEDB' privilege in postgresql. See the relevant change notice for more information. If you do have a user with these privileges, you can move to the next step.
Source: https://www.drupal.org/documentation/in ... e-database

Drpal 8 is huge, about 10 times bigger than earleir versions. The standard version 8.0, contains about 13 000 files, so the fastest and most convenient way to install Drupal yourself is using drush.

For more information see: The Community Documentation and The download and extend page.

Also note:
Setting up cron is an important step in the installation of the website and assists in the maintenance of the site's assets for search results, checking for updates to Drupal core and modules, and removing temporary files.
See : Checking your site after installation and setting a cron below.

2. Drush (drupal shell), PuTTY and Drupal 8.

First of all we refer to this thread: Drupal, drush and putty, fast and secure.

In addition you should read:

Upgrading Drush to work with Drupal 8

Installing Drupal with Drush, the Basics

3. Checking your site after installation and setting a cron

The place to check your installation is: yoursite.com/admin/reports/status

I got the followin warning

PHP OPcode caching
Not enabled
PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.
I have contacted my hoster to enable the php OPcache module.

and the following error:
Trusted Host Settings

Not enabled
The trusted_host_patterns setting is not configured in settings.php. This can lead to security vulnerabilities. It is highly recommended that you configure this. See Protecting against HTTP HOST Header attacks for more information.
Before you can change the settings.php file on the remote server, you may set the write permission to 666. Remember to set it back to 444 after changing the file.

When I added the following code:

Code: Select all

$settings['trusted_host_patterns'] = array(
to the end of the file, I got the following error:
The provided host name is not valid for this server.
The following code worked for me:

Code: Select all

$settings['trusted_host_patterns'] = array(
If you did not set the cron during installation, you find more information here:

Setting up cron

Configuring cron jobs using the cron command

Protecting against HTTP HOST Header attacks (prevent your site from thinking it is someone else)

New setting for trusted hostname configuration

http://drupal.stackexchange.com/questio ... 994#145994

4. Multisite installation of drupal.

Note that n sites can share the same codebase. It is explained in the installation guide, linked to in 1. above. Read more: 5. Vagrant Drupal Development

Vagrant Drupal Development Download & Extend

Vagrant Drupal Development Community Documentation

6. Drupal 8 and Fastly.

Fastly (Search for Drupal8)

Drupal.org Migrates Content and File Delivery to Fastly

7. Theming in drupal 8

Before you start theming and extending your own site, you may get some ideas looking at who uses drupal.

Theming Guide

First of all note that
Quite significant changes were introduced in the theme system between Drupal 8 and 7. This guide contains information that applies to Drupal 8 and refers sometimes to Drupal 7 in order to explain new concepts and approaches.

PHPTemplate has been discontinued for theming in Drupal 8; the Twig markup language is used instead. This will make Drupal 8 themes much more secure because PHP calls will no longer exist in theme files. This will also make theming easier to understand for non-programmers.
Source: https://www.drupal.org/theme-guide/8

See also: https://www.drupal.org/project/project_theme

8. Module integration and developement in drupal 8.


9. Improving performance, clearing the cache etc,

Place to check your installation: admin/reports/status

During installation, you may get this warning:
PHP OPcode caching Not enabled

PHP OPcode caching can improve your site's performance considerably. It is highly recommended to have OPcache installed on your server.
Clearing the cache and setting the frequency of Drupal's internal page cache module. Drupal provides an internal page cache module that is recommended for small to medium-sized websites.

Clearing the cache and setting the frequency of the cache modul is done on this page:
Configuration > Development > Performance
  • Click the button "Clear all caches" to clear the cache.
  • Choose the frequency of the page cache in the Page cache maximum age drop down menu. By default it is set to no caching.
Source: Clearing or rebuilding Drupal's cache

See also: Cache Warmer

10. Related tools


11. Other links


My WebProworld Drupal 8 discussion thread.

12. Norwegian

My drupal profile: https://www.drupal.org/user/1401292/

Gisle Hannemyr's drupal profile








Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest