ScriptAlias /xampp-bin /Applications/XAMPP/xamppfiles/binĪction application/x-httpd-php /xampp-bin/php-cgi-5.4.31Īction application/x-httpd-php /xampp-bin/php-cgi-5.5.35 You can now add entries in your nf file for each version of PHP that you want to use, something like this: Now find this section in your nf file and make sure the corresponding Include is uncommented, like so: # Virtual hosts Keep in mind that depending on the version of Apache that XAMPP is using, your syntax may vary a bit. Make sure that those CGIs are allowed to do their thing by adding a block something like this in your nf file (I put mine at the end): That said, keep in mind that your config files and databases may need to be restored if you run multiple installers, so backup and plan accordingly. By installing multiple versions of XAMPP, you can get various versions of the PHP CGI module.Previous answers didn't work well for me, but there's a rather elegant solution over on the Apache Friends Forum, though it took me a bit to get things working properly. I've mentioned Oracle VM VirtualBox because you should at least know about it as an option. Parallel installation of multiple instance of XAMPP is much much much simpler and you can set it up as per Ding's article. Again, overkill if most of your projects are going to 'shared hosting' environments as you don't have much control over the set-up anyways. different set-ups) and then clone the exact set-up to your live server. using Oracle's VM Virtual Box), but that might be overkill unless you need to replicate your remote hosting environment 'exactly.' For example, if you are running a 'dedicated host' and want to closely replicate dedicated host's environment and set up as closely as possible, then you'd go with VM Virtual Box Set-Up - this allows you to run multiple VM's (i.e. Now there are lots of ways to do this (e.g. NOTE: The article, while in the Joomla! Community Magazine, is not specific to Joomla!, so you can use this set-up for whatever PHP/Apache/MySQL projects you are working on. I don't use Ding's set-up exactly - I've tweaked to get my local web projects even more organized and streamlined - but my set-up is based on Ding's approach. There is a really good article on this called ' Practical Development 2: Working Environment' by Marco Dings in the Joomla! Community Magazine on how to set up your work environment to run multiple local XAMPP installs, multiple local web sites using 'name based hosting,' and how to keep it all organized. a source folder that replicates itself in the Apache configs for each XAMPP stack). When I need to switch a local site to PHP5.5, I click on XAMPP182-ControlPanel and shut down the Apache and MySQL servers, then I click XAMPP182-ControlPanel and fire up the Apache and MySQL servers in that stack.Īlso, I use 'soft-linking' so that I do all my configuration for my local web sites in one folder - then create a 'junction' (i.e. When I need to run local site on PHP5.4, I click on XAMPP182-ControlPanel and fire up the Apache and MySQL servers. I've created shortcuts to those, renamed them to 'XAMPP182-ControlPanel' and 'XAMPP183-ControlPanel' and placed those on my desktop. exe to launch the controller for that specific XAMPP stack. Install each instance of XAMPP in it's own folder. You can install parallel versions of XAMPP - one for each major version of PHP. So what I'm looking for is a way to install multiple XAMPP or installing PHP 5.2 and activating it for XAMPP (either through phpswitch or another way) I tried to figured out on how to download/install/activate PHP 5.2 using phpswitch but had no success. I managed to find phpswitch under /Applications/XAMPP/xamppfiles/bin/ and using it's list action showed me that I only have PHP 5.3.1 installed and active. I've done some research but couldn't find a way to get around this. On XAMPP Download Website it's pretty clear that on installing any XAMPP version it will remove previous one. Since this a work I might do for a couple of times in the next months, I was thinking about installing a XAMP version that runs PHP 5.2Īt the same time I'm involved into some work that requires me to use PHP 5.3, so I just can`t uninstall my current XAMP version and install one that uses PHP 5.2 I already have XAMP 1.7.3 installed but this version has PHP 5.3. I need to do some work on a legacy system that requires PHP 5.2
0 Comments
Leave a Reply. |