Friday, June 10, 2016

Upgrading Wamp 22 to Wamp 25 - then moodle 2.6.11 to 3.0

Steps to upgrade WAMP 22 to WAMP 25 - without losing the moodle databases.

So I can upgrade my moodle from 2.6.11 to 3.0, which requires a newer php version.

Set up the RD environment - practice here.  May need a reset on the RD server.  Practice, document, reset and repeat.  Do this a couple times, ensuring you are covering all of your bases.  We want a new WAMP25 server successfully install with current moodle instances running without issue.  I will upgrade the WAMP first - then a short-ish time later, upgrade the moodle.

Preparations

1 - Take WAMP service off line. Be sure to exit it -  out of memory.

2 - Rename the wamp folder to wamp22 - keep it around.

Ensure ample drive space to create new wamp folder upon install, check size of current wamp folder

.7 = 5.4 , 8 = 2.2, .9 = 3.2, .10 = 1.9 (in GB)

3 - Execute the WMAP25 installer - located in server downloads folder.

Choose default settings during install. After Install complete, new c:\wamp folder exists.  Hopefully no annoying errors with vcredist_x64.exe.

Copy moodle databases from old wamp to new wamp


1 - rename the data folder located at wamp\bin\mysql\mysql5.5.26\ to data_orig -- keep it around

2 - copy the data folder from wamp22\bin\mysql\mysql5.4.26\ into wamp\bin\mysql\mysql5.5.26\


Update Apache

1 - activate vhost directive in new apache configuration file wamp\bin\apache\apache2.4.9\conf\httpd.conf - remove comment from line 513

Copy the vhost file from old wamp to new wamp

2 - keep the new original wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhost.conf , append _org to httpd-vhost.conf

3 - copy the old httpd-vhost.conf file located in wamp22\bin\apache\apache2.2.22\conf\extra to the new location wamp\bin\apache\apache2.4.9\conf\extra

4 - update the httpd-vhost.conf file using apache 2.4.9 directive style,  for example
Directory "c:wamp\www\student "    Require all grantedDirectory
Update PHP
update settings in wamp\bin\apache\apache2.4.9\bin\php.ini
post_max_size = 1024 M
upload_max_filesize = 1024 M
max_execution_time =  -1
max_input_time =  -1
add to end of file:  max_input_vars = 5000
un-comment ;error_log = "c:/wamp/logs/php_error.php

Copy moodle code into new wamp\www folder.

1 - Copy the wamp22\www folder into wamp\www

Update server services

remove the old wamp services or edit them to point to files in  new path.

Use the systray to remove them
Use systray to create new for both MySQL and Apache - so they both automatically start upon reboot

Update sync for student moodle - copy web root file

1 - Copy c:/wamp22/www/sync_enrollments_genius.bat into the wamp\www folder

2 - Edit the sync_enrollments_genius.bat file, changing the php file path from php5.3.13 to php5.5.12 for both the user and enrollments sync with genius.

Reboot server and keep fingers crossed, at minimum, restart the apache and mysql services.


1 comment:

  1. Casino Review & Ratings by RealPlayer - Dr.MCD
    Is Casino Safe? Play at 안산 출장안마 Casino Safe! 고양 출장마사지 Read 2 Player reviews, See Casino 하남 출장샵 Ranking and Rating based on 세종특별자치 출장마사지 6 Votes, Find Bonuses & 목포 출장마사지 Full Information.

    ReplyDelete