Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Tutorials - Other

By editor , 3 July, 2016

Set file Permissions on Linux and ACL

Tags

  • Server
  • Shell
  • Linux

Using chmod, chown chgrp

Change File / Directories permissions.

chmod 0777 . -R #
chmod g+s /var/www #
chmod +x *.sh #

Change File / Folder Owner.

chown www-data:www-data -R .

Change File / Directories Group.

By nuwantha , 2 July, 2016

Install PHP 5 (5.4, 5.5, 5.6) and PHP 7 on Linux

Tags

  • Server
  • Shell
  • PHP

Via PPA

Install PHP 5.4 On linux (Debian, Ubuntu, Mint ...)

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get install -y php5

By editor , 1 July, 2016

Install LAMP On Debian based Linux

Tags

  • Linux
  • Shell
  • Server

Install Apache 2 server

sudo apt-get install apache2

#Test Apache 2
#Open : http://localhost/

By editor , 1 July, 2016

Reorder Elements using CSS

Tags

  • Theming
  • CSS

Example :

<style>
#parent-div { display: flex; }
#el1 { order: 3; }
#el2 { order: 2; }
#el3 { order: 1; }
</style>

By editor , 28 June, 2016

Access control with Apache .htaccess

Tags

  • Server
  • Linux

1. Access control by IP : (Example)

order deny,allow
deny from all
allow from [YOUR_IP_ADDRESS]

By editor , 27 June, 2016

MySQL Recover / Change root Password

Tags

  • Server
  • Shell
  • Database

1. Stop the MySQL service of started

sudo /etc/init.d/mysql stop #On Debian based linux systems (Ubuntu, Mint ...)
sudo /etc/init.d/mysqld stop #On Red Hat Enterprise based Linux systems (CentOS, Fedora, Suse ...)

By editor , 21 June, 2016

SASS SCSS LESS compile

Tags

  • CSS
  • Code
  • Settings
  • Theming

Compilers

1. COMPASS

Compass is a powerfull command line compiler

Install (Linux debian) : sudo apt-get install ruby-compass

Link : http://compass-style.org/help/documentation/command-line/

2. Koala

By editor , 20 June, 2016

CSS Word Wrapping and Text Overflow Propertys

Tags

  • Theming
  • CSS

Word Wrap ( word-wrap )

Available values of word-wrap property: normal, break-word, initial, inherit

Example : Disable HTML word wrapping using CSS

.your-class{white-space:nowrap;}

By Anonymous (not verified) , 14 June, 2016

HTML JS communication between iframes and Cross-document messaging

Tags

  • JavaScript

Example :

For example in the top window (Parent): (the_iframe.contentWindow.postMessage('data', 'domain');)

By editor , 14 June, 2016

CSS block formating contexte / CSS Box Model

Tags

  • CSS
  • Theming

Tuto English : 
CSS Box Model : http://www.w3schools.com/css/css_boxmodel.asp
CSS display Property - http://www.w3schools.com/cssref/pr_class_display.asp

Pagination

  • First page
  • Previous page
  • …
  • Page 5
  • Page 6
  • Page 7
  • Page 8
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Next page
  • Last page

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer