Should I adjust settings somewhere else so that Mautic can make use of PHP 7.4?
Message I get when navigating to the Mautic installation in the browser "Mautic does not support PHP version 8.1.2 at this time. To use Mautic, you will need to downgrade to an earlier version."
You need to downgrade your current php version. It looks like you are running 8.1.2 which is generally shipped with ubuntu 22.04.
You need to downgrade to 8.0 in order for Mautic 4.x to work. If you are on a lesser version you will need to downgrade to 7.4.
To downgrade to 8.0 run the following commands:
Then go ahead and create this file sudo nano /etc/php/8.0/fpm/conf.d/60-custom.ini
and put the following content inside:
sudo systemctl reload php8.0-fpm
run this and choose 8.0 for your version: sudo update-alternatives --config php
If you are using nginx make sure that in your mautic.conf file you are calling php8.0-fpm
If you are running apache you need to use a2enmod (I am less familiar so I would suggest googling how to disable 8.1 and enable 8.0)