[BlueOnyx:26043] Re: 5210R: PHP version and subdomains
Michael Stauber
mstauber at blueonyx.it
Wed Mar 22 13:58:39 -05 2023
Hi Andy,
> I don't know if this is an error at our end, but I am having trouble
> with PHP version and subdomains.
>
> I have set up a main site and configured it to run PHP 8.0.24 with
> suPHP.
>
> The main site works fine:https://www.orpheustest.co.uk/ver.php returns
> 8.0.24 as expected.
>
> I have set up a subdomain athttps://subdomain.orpheustest.co.uk/. The
> setup has worked and SSL installed no problem.
>
> However,https://subdomain.orpheustest.co.uk/ver.php returns 7.2.24
> which is the base version for the server from the CLI.
>
> Changing the PHP version under 'Services/PHP' has the desired effect on
> the base site, but the subdomain remains stubbornly at 7.2.24.
Switch the Vsite to PHP-FPM and it should work. You will then have the
chosen PHP version also available for the subdomains of that Vsite.
--
With best regards
Michael Stauber
More information about the Blueonyx
mailing list