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

Server

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 , 10 June, 2016

Git - Ignore Files, Directories, Permissions

Tags

  • Shell
  • Server
  • Git

1 Ignore files And Folders using .gitignore Files (Include and/or Exclude)

Create the gitignore file at the top of your repository,i f it's not already exist

By editor , 2 June, 2016

Drupal Console

Tags

  • Drupal 8
  • Server
  • Shell

 

Drupal Console is the new CLI for Drupal. Drupal Console is a tool to generate boilerplate code, interact and debug Drupal. From the ground up, it has been built to utilize the same modern PHP practices which were introduced in Drupal 8.

By editor , 25 May, 2016

Cache Clearing and rebuilding methods for Drupal 8

Tags

  • Drupal 8
  • Code
  • Server
  • Drush
  • Cache

Site URL

1. Go to Administration > Configuration > Development > Performance
 (/admin/config/development/performance)
2. Click on "Clear all caches"

By editor , 4 April, 2016

Open URL with name and password (Apache Htaccess, FTP ...)

Tags

  • Linux
  • Server
  • PHP

Examples with username and password:

https://name:pass@yourdomain.com

ftp://name:pass@yourdomain.com
​ftp://name:pass@ftp.yourdomain.com

ssh name:pass@yourdomain.com

Examples with username:

By editor , 3 February, 2016

Make Correction on a git

Tags

  • Shell
  • Git
  • Server

1. Remove Files

Step 1. Switch to your branch
Strp 2. Remove files using -rm command
Ex :  git rm -r sites/all/modules/stage_file_proxy
Step 3. Add this file to the .gitignore

By editor , 30 January, 2016

Mysql Database Backup / Restore Syntax

Tags

  • Server
  • Shell
  • Database

Syatax (Usually used)
mysqldump --host=IP-OR-HOST --user=USERNAME --password=PASSWORD database_name > database_name.sql
mysqldump -h IP-OR-HOST -u USERNAME -pPASSWORD database_name > database_name.sql

By editor , 28 January, 2016

Git - Include and Exclude by .gitignore

Tags

  • Git
  • Server
  • Shell

Ignore files and folders using .gitignore

Example 1. Ignore (Exclude) a simple file or a folder
sites/default/settings.php
sites/*/files

By editor , 24 January, 2016

Remove Apache Log files

Tags

  • Server
  • Shell

Step 1. Connect to the server as root or execute commands as sudo
#sudo su

Step 2. remove all log files
rm -rf /var/log/apache2/*
rm -rf /var/log/virtualmin/*
....

Pagination

  • Previous page
  • 5
  • Next page
Server

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