Many Php Versions On xampp

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Many Php Versions On xampp

Postby pirvanmarian » 18. September 2015 21:12

I need for my test many diferent version of php, how i can do run many version of php whith a switch or something?
pirvanmarian
 
Posts: 1
Joined: 18. September 2015 21:07
Operating System: Windows

Re: Many Php Versions On xampp

Postby Nobbie » 19. September 2015 09:06

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.
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 175 guests