Drupal Update with Drush

1. cd to Drupal installation Directory

2. Backup Drupal

drush archive-dump

3. Check Drupal Update and get the list of modules that have update

drush ups

4. Set Drupal Website to maintenance mode

drush sset system.maintenance_mode 1

5. Clear Drupal Cache

drush cr

6. Update Drupal and press "Y" when asked

drush up drupal

7. Update Drupal Database

Tags

Setting Up VLAN for ToR Switch (Junos)

1. Set up all VLANs and assign VLAN to access port

set vlan VLAN01 vlaid-id 1000
set vlan VLAN01 interface ge-0/0/0

2. Set the Trunk Port

set interfaces ge-0/1/3 unit 0 family ethernet-switching port-mode trunk
set interfaces ge-0/1/3 unit 0 family ethernet-switching vlan member [ VLAN01 VLAN02 VLAN03 ]

3. Add a description to each ports

set interface ge-0/0/0 description "Server Name A"
set interface ge-0/0/1 description "Server Name B"

4. Set the port speed and duplex mode

Tags

Certbot usage (Free SSL certificate generation)

Generate and install SSL certifcate using Certbot:

1. Install Certbot from FreeBSD ports:

cd /usr/ports/security/py-certbot
make install clean

2. Generate a free SSL

certbot certonly --webroot

3. Enter the web root and hostname for certificate

4. Make change to Apache configration and restart Apache

5. Add the following command to cron and run once a day

Running Custom php script within Drupal Directory

By default, Drupal will not allow running of any other PHP scripts within Drupal directory. It will return "403 Forbidden", if anybody trying to access the PHP scripts.

To by pass this constraint, we will need to add 2 lines in .htaccess. .htaccess is in Drupal root directory.

1. Open .htaccess with a text editor

2. Find the section below:

Tags

Cacti Graph no data randomly for some graphs

Symptom

Cacti Blank

Cause:

Data Collector reachs max run time (polling interval). Remaining SNMP data will not be collected.

Solution:

1. Use spine instead of cmd.php

2. Increase "Processes" and "Threads" setting under "Data Collection" --> "Data Collectors"

Recommend Setting for

"Processes" = 2 * no. Of Cores available

"Threads" = 10 - 15

Tags