Page 1 of 2

Recover xampp directory from old HD

PostPosted: 13. June 2010 22:38
by MarkHoward
I have temporarily hooked up the hard disk from my old (dead) computer to a new computer.
I have installed the same version of xampp on the new computer.
Is there a simple way of getting my database and website files across? ie can I just copy htdocs/ and mysql/ across or are there other configuration changes that have to be made?

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 02:04
by JonB
It 'might work', I think. Particularly if you haven't changed the location of the XAMPP folder and didn't make a lot of changes that re now hard to recall.

You should 'diff' (compare for differences) the Apache .conf files, to catch any changes in there. They are found in \xampp\apache\conf. For the ones in 'extras', you can simply check the file modified date to see if they were altered, if so 'diff' the altered ones.

A good tool for this is WinMerge (its free). You can use the same tool for your php.ini and/if needed my.ini.

http://winmerge.org/

You probably could coax mysqldump.exe into backing up your database by using the command prompt. Changing directory to \xampp\mysql\bin on the old drive and then using mysql.exe or mysqldump.exe to get a backup.

I'd say try it, you have little to lose.

good luck
8)

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 03:42
by MarkHoward
Doesn't like it.
Can you point me to some directions to achieve this the "regular" way, please?

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 04:30
by MarkHoward
Blast. The problem I had was, when I went to open phpMyAdmin I got an error that said
"Error

MySQL said: Documentation
Cannot connect: invalid settings. "

I Uninstalled XAMPP and re-installed it and now I still get the same message.

Help please.

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 05:03
by MarkHoward
I have now uninstalled XAMPP
Rebooted the computer
Removed the empty XAMPP folder
Re-installed XAMPP
Rebooted the computer
Started XAMPP Control
Says Status check OK
Apache Start > busy.. "Apache started" but no display of "Running"
MySql Start > busy.. "MySql started" displays "Running"
Point browser to //localhost says "Done" but I get blank white page.

Please some help.
I'm using Windows 7.

What can I try?

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 08:08
by Radzio
Simply Apache couldn't start. Try to run it from the command line to see messages.

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 09:35
by MarkHoward
Thanks.
apache_start
Please close this command only for shutdown
Apache 2 is starting....
<OS 10048> Only one usage of each socket address <protocol/network address/port is normally permitted. : make sock: could not bind to address 0.0.0.0:80 no listening sockets available shutting down
Unable to open logs
apache could not be started

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 09:43
by Radzio
Have you changed httpd.conf? Do you have any other services using port 80?

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:01
by MarkHoward
If it's in the xampp folder or below, I have not changed httpd.conf.
I'm new to Windows 7 and cannot see how to find out if port 80 is already used.
Any pointers?

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:04
by Radzio
Code: Select all
netstat -an

You should check if there is no 0.0.0.0:80 at the beginning of the list.

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:11
by MarkHoward
Aah. Yes it IS at the beginning of the list.
I have found that Skype is using it.

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:14
by Radzio
There is a setting in Skype that causes it. Simply uncheck "Use port 80..." on Connection tab in Skype's settings and restart Skype if needed.
Then you can start your Apache webserver.

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:18
by MarkHoward
Brilliant. I've disabled Skype now and restarted XAMPP and all is as it should be, so far.
Thanks you very very much.

Now back to the original question:
What is the most straightforward way to retrieve my old website, forum and MySql database from an old disk from a dead XPPro computer onto a different location on this new Windows 7 computer? (The old disc is installed and readable in the new machine.)

Re: Recover xampp directory from old HD

PostPosted: 14. June 2010 10:24
by Radzio
If there was no special configuration, you can copy /htdocs and /mysql/data folders.

Re: Recover xampp directory from old HD

PostPosted: 15. June 2010 08:34
by MarkHoward
Thanks, Radzio. I will report back.