Saturday, 12 September 2009 16:30 | Written by NetworkNerd007 |
INTRODUCTION
This tutorial shows how to install XAMPP 1.7.1 and integrate it with XAMPP 1.7.2 so you can have both PHP 5.3 and PHP 5.2.8. I show how to share the htdocs folder between both as well as the MySQL database in XAMPP 1.7.2 with XAMPP 1.7.1 so you can easily switch between PHP versions.
This as a tough one to name, because what exactly do you call it? I've tried a couple of options and this one seemed to me to be the simplest one and easiest to have others follow along with. There are other options, but this is probably by far the best if ease and simplicity is your goal.
I did do what I called the XAMPP 1.7.2 Hybrid project, which later got renamed to frakenstein. You can read more about that by visiting : http://blog.myownserver.info/2009/09/xampp-1-7-2-php-5-3-to-5-2-frankenstein/ . What I basically did was integrate PHP 5.2.10 into XAMPP 1.7.2, which turned out to be a difficult method and just not practical.
You CAN technically run different versions of PHP in XAMPP 1.7.2 without the method shown here, but they can be rather complex and I decided to keep things simple instead and stick to the basics.
WHAT YOU NEED TO KNOW
This tutoral basically allows you to run both versions of XAMPP on your computer, but not at the same time. You can easily switch between the versions and even use the older MySQL database server with XAMPP 1.7.1 if you like, but I show you how to use the same one between both versions in order to share your databases between both versions of XAMPP.
Since MySQL database servers aren't integrated into Apache, this was the best solution in my opinion due to the fact there's very few changes that have to be made to make it work.
GETTING STARTED
This tutorial assumes you already have XAMPP 1.7.2 installed and there's some reason you want or need to keep this version. Perhaps you upgraded to 1.7.1 from an earlier version and your scripts are now not working correctly or displaying all kinds of nasty depreciated function errors. If you're not married to 1.7.2, I recommend just going with XAMPP 1.7.1 if your script(s) need php 5.2.
What do I do if http://localhost/ doesn't work after 2:55 (in the video). I tried to create a separate entry in my host file called xampp171, but http://xampp171/ didn't work either. I even tried http://127.0.0.1/ and it keeps trying to redirect me to www.* or www.*.com then gives me "Problem loading page." error. Any ideas?
If I run the other XAMPP Control Panel, everything works fine and goes back to normal, but vhosts setup on the 171 install don't seem to work.
I can't get to http://localhost/ with the original XAMPP installation even though my host file has this entry: 127.0.0.1 localhost
I tried this the first time and it didn't work. I'm running Windows 7. I opened processes (ctrl+shift+esc) and made sure to end xampp's running daemon. Re-installed to c:/xampp171 while NOT checking the services, as instructed. MySQL ran fine, Apache did not. So, I unchecked the box in front of Svc for the Apache service, and rechecked it and it worked. Give that a shot.
I'm still working through the installation but my local server is up and running again (still have to configure the security and so on). Thanks for the help!
Thanks a lot. I was so frustrated trying to install individual components coz the latest xampp comes with php 5.3 and I wanted php 5.2.x.
Following ur tutorial i used xampp 1.7.1 and 1.7.3 (the latest) and it seems to work fine. Just finished installing. Thanks for the very clear instructions. cheers!
!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."
Last Updated (Tuesday, 15 September 2009 08:06)
!!REMEMBER: Support Forums!!
I still keep getting requests for support in the comments of posts and unfortunately I cannot give adequate responses due to the fact there's limited space and it just isn't the right place for support.
I therefore am encouraging visitors to PLEASE go to http://forum.myownserver.info for any support related questions. You will NOT receive any spam or anything you don't specifically subscribe to! I'm very meticulous about this myself and if at any time you need help stopping notifications from posts you previously subscribed to, contact me and I will promptly fix the issue.
Thank you for your participation in this!
Twitter Feed
Make a Donation
This site does not run ads nor does anyone fund it. The owner and author is unemployed and pays for it himself, so if you're feeling generous, please make a donation of any amount to help out. Thank you very much.