different php version per virtualhost
Posted by: alfaex (---.dial-up.telesp.net.br)
Date: July 21, 2016 10:04PM

I'm trying to use different version of php on different virtual hosts.
I'm reading a lot and searched alot and nothing work at this time.

I read on this post [forum.wampserver.com] of 2008 that it is possible, but can't find a way to work.

i'm using win10 64
wamp Version 3.0.4 - 64bit
Apache Version: 2.4.17
PHP Version: 5.6.16 and PHP Version: 7.0.0
Server Software: Apache/2.4.17 (Win64) PHP/5.6.16 PHP/7.0.0 - Port defined for Apache: 80

my virtual host right now is
	<VirtualHost *:80>
		LoadModule php7_module "C:/wamp/bin/php/php7.0.0/php7apache2_4.dll" 
		PHPIniDir  "C:/wamp/php7"
		php_value extension_dir "C:/wamp/bin/php/php7.0.0/ext/"
		Loadfile C:/wamp/bin/php/php7.0.0/php7ts.dll
		AddType application/x-httpd-php .php

		DocumentRoot "c:/wamp/www/mysite/"
		ServerName mysite.com
		<Directory  "c:/wamp/www/mysite/">
			Options Indexes FollowSymLinks MultiViews
			AllowOverride All
			Require all granted
		</Directory>
	</VirtualHost>
the others vhost are ok and working fine, i'm using as default php 5.6.16 and trying to use just this project php 7

any possible help or solution?

thanks in advanced.



Edited 1 time(s). Last edit at 07/21/2016 10:07PM by alfaex.

Options: ReplyQuote
Re: different php version per virtualhost
Posted by: Otomatic (Moderator)
Date: July 22, 2016 09:25AM

Hi,

It is IMPOSSIBLE.

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

Options: ReplyQuote
Re: different php version per virtualhost
Posted by: Otomatic (Moderator)
Date: July 22, 2016 09:57AM

Hi,

It is impossible with Wampserver to use more than one PHP version at the same time.

But, you can launch your "standard" VirtualHost then manually switch to PHP 7

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.