I am getting to grips with the Roots ecosystem which has been quite a lot of work but I wish to persevere and get this going.
The latest issue I am noticing is that, when I run
vagrant up the virtual box fails to provision due to PHP 8 becoming the default version and
hirak/prestissimo not supporting it.
I get the following error when running
non-zero return code Changed current directory to /root/.composer Do not run Composer as root/super user! See https://getcomposer.org/root for details ./composer.json has been created Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages. Problem 1 - hirak/prestissimo 0.3.9 requires php ^5.3.2 || ^7.0 -> your PHP version (8.0.0rc1) does not satisfy that requirement.
I have tried editing the files in
trellis/roles/php to set PHP version to 7.4 but it does not work.
Can someone advise me here? I tried to change it via CLI in the VM’s SSH environment but I get permission denied.
Any help would be appreciated. I don’t know why PHP 8 is the default now and I would like ^7 to be the default as this is what my server uses.