sudo apt install php libapache2-mod-php php-mysql
Which works great and installs the latest version of PHP and configures everything fine :-)AddType application/x-httpd-php70 .phpThis is exactly what I want to do, however all the guides Ive found online talk about running everything under the same version, but not individual sites.
In the main configuration, add these:
Gentoo allows installing multiple version of the php server by default. Still running multiple on one webserver can be challenge.
Probably switching to php-fpm is an option (fastcgi php) then you can run several instances ( different config or versions )
and map certain paths to certain fpm backends. which is considerable simpler to maintain and manage.
(It also allows for setups like for only one of the paths on your site you need humoungous amount of memory for buffering) then you can use a setup with limited number of backends for that one wile the others have multiple instances running.