Recover xampp directory from old HD

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Recover xampp directory from old HD

Postby MarkHoward » 13. June 2010 22:38

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?
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby JonB » 14. June 2010 02:04

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)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 03:42

Doesn't like it.
Can you point me to some directions to achieve this the "regular" way, please?
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 04:30

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.
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 05:03

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?
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby Radzio » 14. June 2010 08:08

Simply Apache couldn't start. Try to run it from the command line to see messages.
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 09:35

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
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby Radzio » 14. June 2010 09:43

Have you changed httpd.conf? Do you have any other services using port 80?
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 10:01

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?
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby Radzio » 14. June 2010 10:04

Code: Select all
netstat -an

You should check if there is no 0.0.0.0:80 at the beginning of the list.
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 10:11

Aah. Yes it IS at the beginning of the list.
I have found that Skype is using it.
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby Radzio » 14. June 2010 10:14

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.
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: Recover xampp directory from old HD

Postby MarkHoward » 14. June 2010 10:18

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.)
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Re: Recover xampp directory from old HD

Postby Radzio » 14. June 2010 10:24

If there was no special configuration, you can copy /htdocs and /mysql/data folders.
Radzio
 
Posts: 81
Joined: 05. June 2010 12:26

Re: Recover xampp directory from old HD

Postby MarkHoward » 15. June 2010 08:34

Thanks, Radzio. I will report back.
MarkHoward
 
Posts: 14
Joined: 27. May 2009 04:56

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests