2026-10 drupal11

Last edit

Changed:

< apt install php8.4-fpm
< apt install composer
< apt install
php8.4-bcmath

to

> First install php8.4
> apt install -y php8.4 php8.4-cli php8.4-common php8.4-fpm php8.4-mysql php8.4-xml php8.4-curl php8.4-mbstring php8.4-zip php8.4-gd php8.4-intl php8.4-bcmath
> cd /etc/apache/sites-available/
> edit /etc/apache2/sites-available/*conf to run it under 8.4
> and restart apache2
> apt install composer

Changed:

< sudo -u www-data /bin/bash
< cd /etc/drupal
< composer create-project drupal/recommended-project 11
< cd /etc/apache/sites-available/
< edit /etc/apache2/sites-available/*conf to run it under 8.4

< cd /etc/drupal/11
< composer require drupal/gin
< composer -W require drupal/commerce_cart
< move the cygnettrailers.ca/modules/cygnet-site and theme in
< composer install drush/drush
< ./vendor/bin/drush -l new.cygnettrailers.ca theme:enable claro
< ./vendor/bin/drush -l new.cygnettrailers.ca config:set system.theme admin claro -y

to

> sudo -u www-data /bin/bash
> cd /etc/drupal
> composer create-project drupal/recommended-project 11
> cd /etc/drupal/11
> composer require drupal/gin
> composer -W require drupal/commerce_cart
> move the cygnettrailers.ca/modules/cygnet-site and theme in
> composer install drush/drush
> ./vendor/bin/drush -l new.cygnettrailers.ca theme:enable claro
> ./vendor/bin/drush -l new.cygnettrailers.ca config:set system.theme admin claro -y


2026-10-28: Got rid of Drupal7 so it was time to clean up the PHPs.

First install php8.4

 apt install -y php8.4 php8.4-cli php8.4-common php8.4-fpm php8.4-mysql php8.4-xml php8.4-curl php8.4-mbstring php8.4-zip php8.4-gd php8.4-intl php8.4-bcmath
 cd /etc/apache/sites-available/
 edit /etc/apache2/sites-available/*conf to run it under 8.4
 and restart apache2
 apt install composer

You must run composer as www-data

 sudo -u www-data /bin/bash
 cd /etc/drupal
 composer create-project drupal/recommended-project 11
 cd /etc/drupal/11
 composer require drupal/gin
 composer -W require drupal/commerce_cart
 move the cygnettrailers.ca/modules/cygnet-site and theme in
 composer install drush/drush
 ./vendor/bin/drush -l new.cygnettrailers.ca theme:enable claro
 ./vendor/bin/drush -l new.cygnettrailers.ca config:set system.theme admin claro -y

(once I was logged in I switched back to Gin)

check with: composer require drupal/components

Upgrade php8.2 to 8.4

Did a2disconf php8.2-fpm a2enconf php8.4-fpm, restart etc over and over and apache2 WOULD NOT switch to 8.4 . finally restarted php8.4 THEN restarted apache2, I think did it.

Also switching to 8.4 made d10 throw errors, so in /etc/drupal/10/.htaccess I commented out the zend.assertions line