Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View omega8cc's full-sized avatar

BOA Dev Team omega8cc

View GitHub Profile
@omega8cc
omega8cc / backdrop.md
Created April 5, 2024 18:14
Aegir Leaves Drupal

Hello Drupalers,

The big news is that Aegir moves back — more precisely we leave Drupal 7 for Backdrop CMS.

We will cover several important topics in this update, beyond standard new BOA release details, so please read it carefully, because we normally don’t issue such important statements, and actually never announced anything like that since 2009.

It’s a long post, so let’s start with a little shorter version you can read in more detail further below.

We have good news for both latest Drupal 10.2 based sites and legacy Drupal 7 sites on Aegir. Your Aegir system now fully supports Drupal 10.2 and even Drupal 10.3

@omega8cc
omega8cc / gist:5724528
Last active March 14, 2024 13:28
Steps to implement (pseudo) Single Sign-On (SSO) for any set of sub-sites on BOA
Steps to implement (pseudo) Single Sign-On (SSO) for any set of sub-sites on BOA:
1. Add domains and even wildcard *.sub.domains as aliases to your site in Aegir
2. Install and configure Domain Access -- https://drupal.org/project/domain
3. Set 'server_name_cookie_domain = TRUE' in the modules/boa_site_control.ini file
Done!
How it works?
o1@v1:~/static$ composer create-project goalgorilla/social_template:dev-master social-test --no-interaction
Installing goalgorilla/social_template (dev-master 3c3e25a8d4b13631f5a5bdb585dfa20d8cb74a50)
- Installing goalgorilla/social_template (dev-master 3c3e25a): Cloning 3c3e25a8d4 from cache
Created project in social-test
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 136 installs, 0 updates, 0 removals
- Installing composer/installers (v1.6.0): Loading from cache
- Installing cweagans/composer-patches (1.6.5): Loading from cache
No patches supplied.

Install multiple PHP instances on Linux

Install prerequisites for building PHP

Install the packages needed to build packages

apt-get install build-essential

Install PHP build dependencies

@omega8cc
omega8cc / gist:5731695
Last active August 17, 2021 02:20
Steps to install and configure Redis for any Drupal site on BOA

Steps to install and configure Redis for any Drupal site on BOA:

  1. Login to the dashboard and create a ticket requesting the Redis Service.
  • No, no, scratch that. I forgot it is BOA ;)
  • OK, done!
  • Wait. What?!
  • Seriously. You don't need to do anything -- it works out of the box!

How it works?

o1@v1:~/static$ composer create-project goalgorilla/social_template:dev-master social-test-nodev --no-dev --no-interaction
Installing goalgorilla/social_template (dev-master 3c3e25a8d4b13631f5a5bdb585dfa20d8cb74a50)
- Installing goalgorilla/social_template (dev-master 3c3e25a): Cloning 3c3e25a8d4 from cache
Created project in social-test-nodev
Loading composer repositories with package information
Installing dependencies from lock file
Package operations: 136 installs, 0 updates, 0 removals
- Installing composer/installers (v1.6.0): Loading from cache
- Installing cweagans/composer-patches (1.6.5): Loading from cache
No patches supplied.
@omega8cc
omega8cc / drupal-PSA-003-check.sh
Created April 25, 2018 16:13 — forked from jerbob92/drupal-PSA-003-check.sh
Check whether Drupal 7.59 and 8.5.3 are released
#!/bin/sh
url="https://ftp.drupal.org/files/projects/drupal-7.59.zip";
if curl --output /dev/null --silent --head --fail "$url"; then
echo "URL exists: $url";
else
echo "URL does not exist: $url";
fi;
url="https://ftp.drupal.org/files/projects/drupal-8.5.3.zip";
@omega8cc
omega8cc / fix_pxy.sh
Created April 15, 2017 13:30
Fix ProxySQL config
#!/bin/bash
SHELL=/bin/bash
PATH=/usr/local/bin:/usr/local/sbin:/opt/local/bin:/usr/bin:/usr/sbin:/bin:/sbin
_NOSTRICT="-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
###
### Avoid too many questions
###
#######################################################
### nginx.conf site wp vhost include start
#######################################################
###
### deny crawlers without 403 response
###
if ($http_user_agent ~* (HTTrack|HTMLParser|libwww|wget) ) {
return 444;
}
@omega8cc
omega8cc / lenny.txt
Created February 14, 2017 20:49
BOA on Debian Lenny
---------- Forwarded message ----------
From: root <root@aegir.cam*****.org>
Date: Feb 14, 2017, 08:24 +0100
To: ****@gmail.com
Subject: Debian package updates on aegir.cam*****.org
apticron report [Tue, 14 Feb 2017 07:26:05 +0000]
========================================================================
apticron has detected that some packages need upgrading on: