Hello everyone, please excuse my English, i'm Italian .
I have a MAC m1 pro with macOS Monterey and have just installed brew (arch arm) and XAMPP 8.1.6 (installer pack).
On my mac I have installed php8.1 with brew, I would simply like, if possible, to load php8.1 present on my machine into xampp and not the php present in XAMPP. I tried to put LoadModule php_module path/php/8.1/modules/libphp.so in the httpd-xampp.conf but xamp returns an error because it needs an arch x86_54 so I installed php for arch x86_64 via brew and when I run it in XAMPP it returns an error in XAMPP/xamppfiles/apache2/scripts/ctl.sh.
Is it possible to configure xamp by loading php externally from it? And if so, is it possible in vhost to load different versions of php in the different virtualhosts I configured?
Thanks