How to migrate XAMPP from Windows to Linux

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

How to migrate XAMPP from Windows to Linux

Postby ebueno » 20. December 2016 17:08

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.
ebueno
 
Posts: 2
Joined: 20. December 2016 15:30
XAMPP version: 5.5.38
Operating System: Windows/Linux

Re: How to migrate XAMPP from Windows to Linux

Postby Nobbie » 20. December 2016 22:53

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.
Nobbie
 
Posts: 9505
Joined: 09. March 2008 13:04

Re: How to migrate XAMPP from Windows to Linux

Postby ebueno » 27. December 2016 12:48

I will try that, and post here the results.

Thanks for your help pal.
ebueno
 
Posts: 2
Joined: 20. December 2016 15:30
XAMPP version: 5.5.38
Operating System: Windows/Linux


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 2 guests