Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

different php version per virtualhost (2 replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>