XAMPP 1.7.2 With PHP 5.2.8 And XAMPP 1.7.1

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.

First you need to download XAMPP 1.7.1, which you can do so by going to:
http://sourceforge.net/projects/xampp/files/XAMPP Windows/1.7.1/

I use the installer file in this tutorial. (xampp-win32-1.7.1-installer.exe)

Now follow this video tutorial explaining how to set it up:

ADDITIONAL NOTES

If you have any questions or need additional help, please visit the forums at http://forum.myownserver.info .



Comments
Add New Search RSS
Thank You
Ivailo Milenkov Y-m-d H:i:s

Thank you - very clear, useful and concise information.
Thank you very much!
KELULUZINHO Y-m-d H:i:s

:D THANK YOU! :lol:
thank you
menual Y-m-d H:i:s

you did a great job! thanks a lot
What if localhost doesn't work?
brian Y-m-d H:i:s

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

Any ideas?
localhost fix
Sarandi Klikizos Y-m-d H:i:s

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!
xaa Y-m-d H:i:s

waou thanks !
Works with XAMPP 1.7.3 as well!
Vicer Y-m-d H:i:s

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!
It worked fine
Sergio Y-m-d H:i:s

Thank you.
The video was helpful to run Drupal and CiviCRM 3.1 (don't like PHP5.3) and i
learnt something new. Now I can face other troubles :-)
Rick Y-m-d H:i:s

Thank you very much for explaining this!! I experienced many problems with
Drupal 6 in combination with PHP5.3. Now solved!
Thanks again.

Rick
Leave feedback
Name:
Your email:
 
Website:
Message Title:
Formatting:
[b] [i] [u] [url] [quote] [code] [img] 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
Enter the text as you see it in the image.

!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!

Open SourceApache HTTP Server ProjectMySQLPHP
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.

Powered by easy paypal donation

Survey
Which is better?
 
Search
User Login



Visitors


Countries

30.3%United States United States
8.5%United Kingdom United Kingdom
7.7%India India
4.7%Australia Australia
4.5%Canada Canada

Visitors

Today: 36
Yesterday: 134
Last Week: 1144
This Month: 762
Last Month: 5006
Total: 52596


JoomlaWatch Stats 1.2.9 by Matej Koval