Different versions of PHP on different virtual hosts
Posted by: dmchale (38.135.8.---)
Date: November 30, 2022 10:27PM

I know that historically WAMP has only supported a single version of PHP at once, but my sysadmin swears up and down that there were notes in a release log that it was now possible to run different versions of PHP on different virtualhosts now.

Can anyone please confirm this? And if so, how do you enable it? I've tried the usual ways of updating the .htaccess file (such as using AddHandler) but most changes simply download the php file through the browser instead of executing it anymore.

Thanks in advance!

Re: Different versions of PHP on different virtual hosts
Posted by: Otomatic (Moderator)
Date: December 01, 2022 08:41AM

Hi,

Supported since Wampserver 3.2.8.

Read the help on the Wampserver homepage ('http://localhost/') : FCGI mode help

Do not modify your .htaccess files !

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Re: Different versions of PHP on different virtual hosts
Posted by: dmchale (50.214.230.---)
Date: December 01, 2022 05:20PM

Thanks so much! I updated the VirtualHost entry for an existing site in the`httpd-vhosts.conf` with the necessary block for php 8.1.13 (which we installed yesterday) and it seems to be working as expected!

Sorry, only registered users may post in this forum.