Page 1 of 1

Many Php Versions On xampp

PostPosted: 18. September 2015 21:12
by pirvanmarian
I need for my test many diferent version of php, how i can do run many version of php whith a switch or something?

Re: Many Php Versions On xampp

PostPosted: 19. September 2015 09:06
by Nobbie
Create as many different VirtualHosts as you need (one VirtualHost for one PHP version), in each VirtualHost define your PHP version you need. To run different PHP version within one Apache, you must use PHP as CGI, not as module.

Later on, if you run a PHP script, the VirtualHost is "the switch" for the PHP Version.

You need some knowledge about configuring Apache for that.