Migrate from Windows Xampp to Turnkey Linux Moodle

Migrate from Windows Xampp to Turnkey Linux Moodle

John X -
回帖数:5

Hello everyone,

Question 1: Is there a wiki that already has step by step instructions for what I am trying to do below?

This is the first time installing/using moodle.

Someone else in the past installed moodle on a pc with WinXP using XAMPP. But I would like to move it to a Linux server.

I have downloaded and installed Turnkey virtual appliance version of Moodle. Which is basically ubuntu with moodle already preconfigured.

I wish to migrate everything from the XAMPP environment to Turnkey Moodle environment. I have been looking at the config.php files to locate where all the directories are.

What I need help with is understanding the steps involved in migrating from one to the other 100%. The original has been in use for a while so it has been themed, has content, is integrated with Active Directory.

Using the following instructions (method 1,

http://docs.moodle.org/en/Moodle_migration#Migrating_a_complete_Moodle_site_-_method_1

Step 1. I have created a text dump of the SQL database using phpMyadmin.

It is the following step I am confused with.

<quote>Step 2. Copy the Moodle software. You will need to copy the Moodle code itself to the new server - upgrade the code to the latest version if you can.</quote>

What does this mean? The following is an output of the moodle files as they appear on the XP pc.

Volume in drive C has no label.
Volume Serial Number is 5884-BEBF

Directory of C:\server

25/11/2010  02:32 PM    <DIR>          .
25/11/2010  02:32 PM    <DIR>          ..
30/09/2009  04:34 PM    <DIR>          apache
21/01/2009  10:31 PM               423 apache_start.bat
21/01/2009  10:31 PM               127 apache_stop.bat
30/09/2009  04:33 PM    <DIR>          cgi-bin
07/07/2010  11:41 AM    <DIR>          feedback_package
30/09/2009  05:36 PM    <DIR>          install
30/09/2009  04:33 PM    <DIR>          licenses
30/09/2009  05:37 PM    <DIR>          moodle
04/11/2010  11:42 AM    <DIR>          moodledata
30/09/2009  04:32 PM    <DIR>          mysql
18/02/2009  09:49 PM               468 mysql_start.bat
04/02/2009  12:54 PM                62 mysql_stop.bat
08/04/2009  08:16 PM               433 passwords.txt
30/09/2009  05:36 PM    <DIR>          php
10/04/2009  10:10 PM             6,211 readme_de.txt
10/04/2009  10:10 PM             6,263 readme_en.txt
30/09/2009  04:32 PM    <DIR>          sendmail
21/12/2007  05:01 AM            60,928 service.exe
06/12/2005  12:51 AM               367 setup_xampp.bat
25/11/2010  02:20 PM    <DIR>          tmp
18/02/2009  09:41 PM           147,456 xampp-control.exe
21/12/2007  05:01 AM           144,592 xampp-portcheck.exe
14/02/2009  02:00 AM            86,016 xampp_chkdll.exe
14/02/2009  02:00 AM           102,400 xampp_cli.exe
14/02/2009  02:00 AM            90,112 xampp_restart.exe
14/02/2009  02:00 AM            73,728 xampp_service_mercury.exe
14/02/2009  02:00 AM            90,112 xampp_start.exe
14/02/2009  02:00 AM            90,112 xampp_stop.exe
18 File(s)        899,810 bytes
14 Dir(s)  109,417,136,128 bytes free

 

Do I have to upgrade the XAMPP version of moodle first? How is that done?

Do I copy the contents of c:\server\moodle to the linux server?

Also don't know what version is running in each environment?

Maybe I am overthinking this and there is a simpler way.


回复John X

Re: Migrate from Windows Xampp to Turnkey Linux Moodle

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi

> Someone else in the past installed moodle on a pc with WinXP using XAMPP. But I would like to move it to a Linux server.

Not the worst idea 微笑

> I have downloaded and installed Turnkey virtual appliance version of Moodle. Which is basically ubuntu with moodle already preconfigured.

Don't over estimate the "turn-key" - these things have to be maintained too.

> What I need help with is understanding the steps involved in migrating from one to the other 100%. The original has been in use for a while so it has been themed, has content, is integrated with Active Directory.
>
> Using the following instructions (method 1,
> http://docs.moodle.org/en/Moodle_migration#Migrating_a_complete_Moodle_site_-_method_1

Yes, that is the right one for you, method 1.

> Step 1. I have created a text dump of the SQL database using phpMyadmin.
>
> It is the following step I am confused with.
>
> "Step 2. Copy the Moodle software. You will need to copy the Moodle code itself to the new server - upgrade the code to the latest version if you can."
>
> What does this mean? The following is an output of the moodle files as they appear on the XP pc.
>
> Directory of C:\server
>
> 30/09/2009 04:34 PM <DIR> apache
> 21/01/2009 10:31 PM 423 apache_start.bat

This is an XAMPP http://docs.moodle.org/en/Windows_installation_using_XAMPP
Hope your predecessor hasn't put it to production (see the comment in the above page).

> 30/09/2009 05:37 PM <DIR> moodle
> 04/11/2010 11:42 AM <DIR> moodledata

You'll need these two directories for sure.

> 30/09/2009 04:32 PM <DIR> mysql

Whether you'll need this depends on how you migrate the data in the mysql database. Since you have taken a sql-dump already, this directory will not be necessary.

> Do I have to upgrade the XAMPP version of moodle first? How is that done?

No.

> Do I copy the contents of c:\server\moodle to the linux server?

No. Only the two directories mentioned above.

> Also don't know what version is running in each environment?

If you are logged in as admin, there is a version info script under /m

> Maybe I am overthinking this and there is a simpler way.

You are in the right path. Break the job into two clearly defined phases:
a) Migration from Windows to Linux keeping everything else unchanged
b) Upgrading to latest 1.9, once everything is stable inside the Linux server
回复Visvanath Ratnaweera

Re: Migrate from Windows Xampp to Turnkey Linux Moodle

John X -

Thank you for your responses and by replying to key areas in my post, things are beginning to get clearer.

 

>This is an XAMPP http://docs.moodle.org/en/Windows_installation_using_XAMPP
>Hope your predecessor hasn't put it to production (see the comment in the above page).

It is used by students only internally for now, not on the web.

Also I have already cloned the PC (afterhours) to another workstation which has identical hardware. I have put it on a seperate network. That way I can work on testing the migration without affecting anyone else. Once I have figured out the process I will perform the steps one final time.

回复John X

Re: Migrate from Windows Xampp to Turnkey Linux Moodle

Visvanath Ratnaweera -
Particularly helpful Moodlers的头像 Translators的头像
Hi

> Also I have already cloned the PC (afterhours) to another workstation which has identical hardware. I have put it on a seperate network. That way I can work on testing the migration without affecting anyone else.

Since you are moving to a new machine anyway (from Windows to Linux) the spare machine is not really necessary for you testing. 'course it would come handy, if Murphy decides to pay a visit to the original box before you're finished with the transition. ;-(
回复Visvanath Ratnaweera

Re: Migrate from Windows Xampp to Turnkey Linux Moodle

John X -

I believe my migration to the new server is successful.

It looks the same and also my test student account has the same enrolments.

Is there anything else I need to check?  I would like to know if there is a way to be 100% certain of the migration.

回复John X

Re: Migrate from Windows Xampp to Turnkey Linux Moodle

Dominique-Alain Jan -
Testers的头像

Reading the thread in this forum, I think you did it right.

The only thing I sometimes forget is to add afterwards all the addons I had on the previous server. So if you have provided third party plug-ins or new themes, don't forget to add them and install them again on the new server

Good luck with your new installation

-dajan