Basic Setup For Drupal 10 in AWS

Basically the environment will consist of an Application Load Balancer (ALB), two or more Elastic Compute Cloud (EC2) instances, an Elastic File System (EFS), and a Relational Database Service (RDS) instance. The EFS provides shared file storage for the EC2 instances to access, while the RDS instance provides the MySQL database that Drupal will use, and the ALB distributes incoming web traffic to the EC2 instances. It is critical to understand that each of these components will bet setup with redundancy and fail-over capability across two or more Availability Zones (AZs) in a single AWS Region.

Source: Setup Drupal 10 with High Availability in AWS Linux 2023 | SYSOPS GUIDE

Article gives a good basic starting setup getting Drupal up and running in AWS and leveraging AWS tools. I will be interested in seeing how it scales.

Drupal core committers look to remove support for Windows in production in Drupal 11

Drupal added support for IIS in 2010 and we have supported that and WAMP (Running Apache and PHP on Windows). Unfortunately, we have never been able to provide automated testing for these environments. And since 2010, the use of Microsoft products for hosting websites has declined. Because of this, the Drupal core committers propose drop support for Windows when used on production web sites in Drupal 11. Support for development on Windows will continue.

Source: RFC Remove support for Windows in production in Drupal 11

I didn’t know that IIS on Windows was still being used in production. I guess I need to get out more.

Notes on better search 8/18/2023

Goal: better, more focused search for www.cali.org.

In general the plan is to scrape the site to a vector database, enable embeddings of the vector db in Llama 2, provide API endpoints to search/find things.

Hints and pointers.

  • Llama2-webui – Run any Llama 2 locally with gradio UI on GPU or CPU from anywhere
  • FastAPI – web framework for building APIs with Python 3.7+ based on standard Python type hints
  • Danswer – Ask Questions in natural language and get Answers backed by private sources. It makes use of
    • PostgreSQL – a powerful, open source object-relational database system
    • QDrant – Vector Database for the next generation of AI applications.
    • Typesense – a modern, privacy-friendly, open source search engine built from the ground up using cutting-edge search algorithms, that take advantage of the latest advances in hardware capabilities.

The challenge is to wire together these technologies and then figure out how to get it to play nice with Drupal. One possibility is just to build this with an API and then use the API to interact with Drupal. That approach also offers the possibility of allowing the membership to interact with the API too.

Resources on using ddev for Drupal 9 development, Windows edition

Resources

Here’s a list of resources to get you started with DDEV and Drupal 9. As with setting up any new development (or production) environment there are a lot of moving parts and it take some time to get it all right. This list includes “HowTo” articles, tools, and documentation to get it all set up.

Notes

— After running ddev config and before running ddev start for the fist time use your favorite editor to edit .dev/config.yaml to the following:

name: d9-dev
type: drupal9
docroot: web
php_version: "8.1"
webserver_type: apache-fpm
router_http_port: "80"
router_https_port: "443"
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
mariadb_version: ""
mysql_version: "8.0"
nfs_mount_enabled: false
mutagen_enabled: false
use_dns_when_possible: true
composer_version: ""
web_environment: []

This will setup DDEV with MySQL 8, PHP 8.1, Drupal 9, and Apache. This matches the dev environment that CALI is using for D9. Check the DDEV docs for more possibilities.

— The DDEV install includes the latest phpmyadmin to help with mysql admin. It’s available in a local browser at <projectName>.ddev.site:8036. Use phpmyadmin to load a dump of the D9 dev database.

— Once WSL2 is setup, use Ubuntu 20.04 to host DDEV.

— DDEV includes git so that’s a good way to manage Drupal. In the CALI world use git to grab a copy of the current D9 code base.

How to fix the Chrome 80 cookies issue in Drupal

There’s plenty of articles out there explaining what the changes are (https://blog.chromium.org/2020/02/samesite-cookie-changes-in-february.html), why they’ve been done (https://www.troyhunt.com/promiscuous-cookies-and-their-impending-death-via-the-samesite-policy) and how to ‘theoretically’ fix them with simple code examples, but we haven’t stumbled upon many articles explaining ‘practical’ solutions to apply to a Drupal site to actually fix the issues that arise due to the stricter cookie policies implemented since the Chrome 80 release.

Source: How to fix the Chrome 80 cookies issue in Drupal

Drupal Distribution: Opigno LMS

It allows to very easily create engaging learning pathsassess the knowledge of students, employees or partners, and monitor their achievements thanks to the reporting dashboards. It offers innovative features like adaptive learning depending on the user’s results, automatic skill management, a mobile application, and much more…

  • manage training paths organized in courses, modules, and activities
  • configure adaptive learning paths
  • manage and ensure skill acquisition by students
  • assess students thanks to varied quizzes
  • manage blended learning by combining online modules with in-house sessions and virtual classrooms
  • award certificates to successful students
  • sell your trainings online
  • facilitate interactions thanks to live meetings, forums and chats
  • and much more!

Opigno LMS is fully compliant with SCORM (1.2 and 2004 v3) and Tin Can (xAPI).

It integrates the innovative H5P technology, making possible to create rich interactive training contents.

Source: Opigno LMS

Some Javascript Tour Libraries

Here’s a list of JS tour libraries that are open source and currently maintained. Tour libraries provide a way for site designers to create guides that will show the features of a website via a walk through of pop-up dialog boxes. They’re really handy for complex sites.

Getty Scholars’ Workspace: A Drupal-based platform for collaborative research | Opensource.com

Built on Drupal, the Getty Institute’s Getty Scholars’ Workspace provides a platform for art historians, and researchers in similar fields, to work collaboratively on multiple projects without having to use several different platforms.

A Drupal-based platform for collaborative research | Opensource.com https://opensource.com/education/16/3/getty-scholars-workspace

The platform includes scholar friendly features like importing Zotero files to create bibliographies and collaboration tools like forums and shared documents. If course it is Drupal so it’ll take some take configuration to get it going. With checking out.