Page 1 of 1

How to migrate XAMPP from Windows to Linux

PostPosted: 20. December 2016 17:08
by ebueno
Hi ppl.

I have searched in the forum and google for a way to migrate my xampp from windows to linux, but don't have any luck finding a answer.

I have xampp 5.3 to windows, already configured, and i like to change my SO to linux, but i don't want make all the configuration and transport from database from one distribution to another.
Have a simple way to make that migration?
If not, the configurations i think i can bring file by file, but the database will be a problem, it's a huge one (3.8gb).

I apreciate any advices. Tks all.

Re: How to migrate XAMPP from Windows to Linux

PostPosted: 20. December 2016 22:53
by Nobbie
I would try it this way:

a) install the same Xampp Version in a Linux environment as you have under Windows

b) then rename the Linux htdocs folder (/opt/lampp/htdocs) to any other name (i.e. /opt/lampp/htdocs.backup)

c) copy the whole Windows htdocs folder (i.e. C:/xampp/htdocs) into the /opt/lampp folder

d) the same thing repeat with the MySQL data folder, rename the Linux data folder (unfortunately, it is not called "data") /opt/lampp/var/mysql to /opt/lampp/var/mysql.backup, then copy the whole Windows Data folder (i.e. C:/xampp/mysql/data) to /opt/lampp/var/mysql (do NOT copy the data folder into mysql folder, instead replace "mysql" by "data").

e) you may have to grant access to the newly created directories as it has been before with the original Xampp folders. This requires some basic linux knowledge, but linux knowledge is required anyway.

And then try to run it. It may run, it may fail, but then you should get some qualified error messages and try to solve the problems. This all sounds like by far more than it is in fact. If you are lucky, it should run in a few minutes only. If not, it is on you and your Linux knowledge to solve problems.

Re: How to migrate XAMPP from Windows to Linux

PostPosted: 27. December 2016 12:48
by ebueno
I will try that, and post here the results.

Thanks for your help pal.