Posts

Showing posts from June, 2017

Install Redis on ubuntu 14.04, 14.10, 15.04, 16.04 etc

Following are the simple sequential commands to install redis on Ubuntu. -sudo apt-get update -sudo apt-get install build-essential -wget http://download.redis.io/redis-stable.tar.gz -tar xvzf redis-stable.tar.gz -cd redis-stable -make -sudo apt-get install tcl8.5 -make test -sudo make install -cd utils -sudo ./install_server.sh -sudo apt-get install php7.1-redis/ for PHP 5.6 use php5.6-redis -sudo service apache2 restart That seats open your info.php file and see redis extension is enabled or not.

Disable Drupal 8 caching during development

Enable local development settings 1. Copy and rename the sites/example.settings.local.php to sites/default/settings.local.php: $ cp sites/example.settings.local.php sites/default/settings.local.php 2. Open settings.php file in sites/default and uncomment these lines: if (file_exists(__DIR__ . '/settings.local.php')) { include __DIR__ . '/settings.local.php'; } This will include the local settings file as part of Drupal's settings file. 3. Open settings.local.php and uncomment (or add) this line to enable the null cache service: $settings['container_yamls'][] = DRUPAL_ROOT . '/sites/development.services.yml'; By default development.services.yml contains the settings to disable Drupal caching: services: cache.backend.null: class: Drupal\Core\Cache\NullBackendFactory NOTE: Do not create development.services.yml, it exists under /sites 4. In settings.local.php change the following to be TRUE if you want to work with enabled css- and j