Running multiple versions of PHP

I have successfully installed php8 (default) and php7, apache with virtual hosts and SSL. I want to be able to specify which version of php runs in each virtual host. Is there a nice, simple guide on how to do this on Manjaro, please?

This should answer your question.
https://bbs.archlinux.org/viewtopic.php?pid=1971628#p1971628

Thank you. I have read this post and don’t see how it helps me. I can see that it would help if I wanted to run Application A that wanted PHP7 and then run Application B that wants PHP8. However, I want to have my local Apache sever running with multiple virtual hosts running simultaneously, each virtual server running it’s own specific level of PHP. I suspect that it may have something to do with PHP-FPM but I cannot find any clear instructions about this.

UP.
I’m interested too.

This guide is for Ubuntu but it should be mostly the same apart from package installation commands. mod_fcgid is on the AUR, see also Apache HTTP Server/mod fcgid - ArchWiki

Where it tells you to use a2enmod to enable the fcgid module just do that manually as per the Arch Wiki link above.

please don’t bump a 2 year old thread … stick to what you already started