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!

Options: ReplyQuote
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 !

------------------------------------------------------------------------------------------------------------
Wampserver 3.3.0 32 bit - Apache 2.4.54.2 - PHP 8.2.0…7.4.33 - MySQL 5.7.40 - MariaDB 10.5.13/10.6.5
Wampserver 3.3.0 64 bit - Apache 2.4.54.2 - PHP 8.2.0…7.4.33 - MySQL 5.7.40/8.0.31 - MariaDB 10.5.17/10.10.2
PhPMyadmin 5.2.0 - MysqlDumper 1.24.5
on W10 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote
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!

Options: ReplyQuote


Sorry, only registered users may post in this forum.