How to save xampp configuration+files [Answered]

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

How to save xampp configuration+files [Answered]

Postby supertp » 16. October 2012 20:58

Hello.

I face some problems with my Ubuntu Linux installation and I want to make sure that I do not lose any work I did with xampp/phpmyadmin (basically a couple of Databases).

More specifically my Linux installation is messed up and I plan to proceed to a format/reinstallation (my PC was dual boot and I plan to get rid of Windows).

I have not yet tried to access my Ubuntu OS via the Ubuntu live CD, but I was wondering : if I save all the files/directories under the /xampp folder, will this be enough, i.e. if I just copy this folder under the new Ubuntu installation will it work or will I have problems?

In general, can I save the database by just saving some files or will I have to export?

Thanks a lot
supertp
 
Posts: 2
Joined: 16. October 2012 20:34
Operating System: Ubuntu Linux 12.04 LTS

Re: How to save xampp configuration+files

Postby JonB » 17. October 2012 00:33

If you can start Ubuntu and mount the filesystem -

Note - You must start lampp first -

Then via su or sudo --

/opt/lampp/lampp backup rootmysqlpassword


will save your databases, log and configuration files and the htdocs folders into a bash script that you can later restore

- result -
Code: Select all
[root@localhost jonb]# /opt/lampp/lampp start
Starting XAMPP for Linux 1.8.0...
XAMPP: Starting Apache with SSL (and PHP5)...
XAMPP: Starting MySQL...
XAMPP: Starting ProFTPD...
XAMPP for Linux started.
[root@localhost jonb]# /opt/lampp/lampp backup xxxyyyzz
Backing up databases...
Backing up configuration, log and htdocs files...
Calculating checksums...
Building final backup file...
Backup finished.
Take care of /opt/lampp/backup/xampp-backup-16-10-12.sh


yeah, like copy it out to a thumb drive... :idea:

Then you can just re-install same version of lampp on the box when all is well, run the bash script - voila~ you are back in business. :shock:

Isn't lampp awesome?

If not - you could copy out the whole /opt/lampp folder - you would probably need to chown & chmod a few things when bringing it back (not recommended) It would be best to tar it all up (preserves permissions)

https://wiki.archlinux.org/index.php/Tar

Code: Select all
tar -cvzf lampp.tar.gz /opt/lampp/


Looks like it would create the tarball in your pwd.

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: How to save xampp configuration+files [Answered]

Postby supertp » 17. October 2012 07:01

thank youou!
supertp
 
Posts: 2
Joined: 16. October 2012 20:34
Operating System: Ubuntu Linux 12.04 LTS

Re: How to save xampp configuration+files [Answered]

Postby JonB » 17. October 2012 18:38

you're welcome,

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


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 26 guests

cron