Hi
Yes. you can move XAMPP, but the process is counter-intuitive. XAMMP (other than the installer) doesn't use the Windows Registry -- so the programs can be moved. There's a built-in script to re-align XAMPP. BUT you run it AFTER you have moved XAMPP.
http://www.apachefriends.org/en/faq-xam ... ml#mvxamppAnd of course you could just COPY the contents of the XAMPP folder into a new folder you have created (rather than using the MOVE command), so if it fails nothing is lost. Remove when all is good.
So the order is:
If you have used the Install as Service option, you will need to Unistall the servers that are running as Services when you look in the XAMPP Control Panel. Also -- obviously -- the servers can't be running when you wish to move.
DO BACKUPS FIRST! (See below)
Copy/Move the contents of the XAMPP folder to your new XAMPP folder with Windows Explorer. This should take maybe three to five minutes depending on how big your XAMPP installation is..
Once the copy is complete, in the root of the new XAMPP folder, start the XAMPP Control Panel manually by double-clicking on 'xampp-control.exe'.
Now, Use the XAMPP relocate tool by clicking on the Setup button.
When setup starts, you should get this message:
"Current directory does not match configured directory.
I must relocate the XAMPP paths correctly.
Should I proceed? (y/x=exit setup): y "
press Return to accept the default.
Unless you have some very good reason, answer 'n' (no) to the question "Should I make a portable XAMPP without drive letters?"
The XAMMP Relocator will fix the basic settings in the configuration files for each of its components, and you will get the message
"XAMPP is ready to use.
Press <Return> to continue:"
Press 'Return' like it says, and then 'x' to exit the XAMPP shell script.
If you are running any of the servers as a service, reinstall them now by checking the Svc boxes in the XAMPP control panel.
Remove the old XAMPP control panel shortcut on your desktop, and make a new one by right clicking on 'xampp-control.exe' and selecting Send to > Desktop (create shortcut) in the Context menu.
Now - Fix Third Party Programs/Scripts that require configuration or paths, and you make changes to Apache and PHP configuration files where you have made any customizations.
Restart your machine and make sure everything was working right!
Congratulations, it's working!! -- you are a genius -
BTW - I keep a whole development site on a USB stick and move it from machine to machine.
A few extra answers based on my own experiences -
If you have any real investment of your time and effort on your XAMPP installation, or the scripts and programs that are installed on it: BE SURE TO BACK IT ALL UP. If you have blogs or forums (or anything else) that is dependent on MySQL, BE SURE TO BACK THEM UP ALSO (separately) with phpMyAdmin.(or use mysqldump.exe). Ugly, ugly things can happen when you're a little bit overtired or frustrated, so give yourself a break and make a backup first. It's very easy to SELECT ALL, AND THEN TOUCH THE WRONG KEY -- only to watch everything you have disappear.
If you have things like Vhosts in Apache where you set an absolute path, that will need to be fixed manually (if that path is changing also).
In General: Anything you added, that didn't come with XAMPP or that is not inside the XAMPP folder will need manual fixes - that would include blogs like WordPress (maybe) and most forum software, (as almost all of them contain installation paths and settings). Then any third-party scripts and applications have absolute paths in them, you should check their FAQ pages or forums to determine this before you try to move things.
I say maybe on WordPress, as I found it depends on a few fine points - such as if you have a media library - at least in WP 2.9.2 I had to fix the path for the Upload directory in phpMyAdmin after moving from one server to another..
Edit:
Shiver me timbers mateys - I think the 'relocator' even fixed my desktop Icon/Shortcut! AND the Start Menu items - XAMPP MUST be perfect Good Luck