- Issue created by @SocialNicheGuru
- π¨π¦Canada llamech
In validating @steven-jones's recent work on https://www.drupal.org/project/hosting_deploy/issues/3420075 π Default value of field is incorrect Fixed , we found that all we had to do was symlink `/var/aegir/.drush/provision/platform/drupal/packages_10.inc` to `/var/aegir/.drush/provision/platform/drupal/packages_9.inc` -- presumably that's not the correct long term solution, but with that, I was able to verify a D10 platform.
- πΊπΈUnited States SocialNicheGuru
@llamech was the site able to run?
I am not sure how to have duel php versions available
php7.4 for Drupal 7, and php8.16+ for D10. Do you? - π¦πΊAustralia ac Perth
Here is a basic patch to give you the files you need for d10
- π¦πΊAustralia ac Perth
To switch PHP versions for different platforms we use hook_provision_apache_vhost_config in /var/aegir/.drush/modvhost.drush.inc
Our default version of php for the server is 8.1 so this only uses 7.4 if the platform name starts with hostmaster or php7
<?php function modvhost_provision_apache_vhost_config($uri, $data) { $query = '@platform_php7'; $hostmaster = '@platform_hostmaster'; if ((substr(d()->platform->name, 0, strlen($query)) === $query) || (substr(d()->platform->name, 0, strlen($hostmaster)) === $hostmaster)) { return array('Include /etc/apache2/conf-available/php7.4-fpm.conf'); } else { return array('Include /etc/apache2/conf-available/php8.1-fpm.conf'); } }
- π¨π¦Canada llamech
@SocialNicheGuru This is with Aegir 3 installed via our Ansible playbook from head on the 7.x-3.x branch, with PHP 8.2. With @steven-jones's fix for π Default value of field is incorrect Fixed , I'm able to create and verify a D10 platform. However I can't install a site due to drush 12's enforced promiscuity, as @colan's "require-dev" trick from π Aegir 3 is incompatible with Drush 9+ Active no longer appears to work. If I find a way to get past that (or if Steven Jones does, as that seems to be his goal), then maybe this issue can be resolved by either the symlink trick I described above or by copying the contents of packages_9.inc holus bolus into a new packages_10.inc.
- πΊπΈUnited States SocialNicheGuru
In my composer post-install I rm -rf vendor/drush relying on the global drush only.
Would that work for you? - π¨π¦Canada llamech
If I downgrade to PHP 8.1 the "require dev" trick works. However I run into a Symfony problem which I believe Steven Jones has a solution for -- awaiting his next blog post!