Friday, October 23, 2015

Upgrading WAMP 2.2 to WAMP2.5 on my rd server

Take two - these are my steps that I am still working on.  The goal?  To be able to repeat these steps on my live moodle servers, upgrading the wamp from version 2.2 - 2.5 - SO, I can later update from moodle 2.6.11 to 2.9.xx.

  1. Practice these steps until they are in the correct order and are complete.
  2. Ensure there is ample drive space to copy old wamp data into new.  Need about 3 GB.
  3. take the WAMP service off line - then Exit it - removing it from memory
  4. rename the wamp folder to wamp22
  5. execute the wamp2.5 installer (follow and accept the default parameters) - any issue with annoying vcredist_x64.exe missing file?  I had to re-install this, after removing it.  It starting complaining about the missing file - WAMP 25 actually would not finish the install.
  6. 2.5 install done.  Update content in wamp from WAMP22 folder
  7. Rename the MySQL data folder wamp\bin\mysql\mysql5.6.17\data to ""\data-backup
  8.  Copy the data folder from wamp22\bin\mysql\mysql5.4.26\data into wamp\bin\mysql\mysql5.6.17\data 
  9.  Update Apache in new install
  10. Activate vhost directive in new conf file, c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf - line 513
  11. Rename the vhost file c:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf to httpd-vhosts-backup.conf
  12. Copy the vhost file httpd-vhosts.conf from wamp22\bin\apache\apache2.2.22\conf\extra to wamp\bin\apache\apache2.4.9\conf\extra
  13. Edit httpd-vhosts.conf - using updates apache 2.4 style directive
  14.     Directory "c:\wamp\www\student"
                    Require all granted
        Directory
  15. Restart the new wamp 2.5 service (back in memory) - USING the systray icon
  16. Remove the old mysql service
  17. Create a new mysql service
  18. Remove the old apache service
  19. Create a new apache service 
  20. Copy the moodle wamp22\www content into the new wamp\www folder (make sure there is drive space for this)
  21.  Restart all WAMP services
  22. Update the php.ini file located in wamp\bin\apache\apache2.4.9\bin.  Maybe also update the php.ini file in the wamp\bin\php path?  Check that using the wamp icon.  Update the following settings
    post_max_size = 1024 M
    upload_max_filesize = 1024 M
    max_execution_time = -1
    max_input_time = -1
    add this line :max_input_vars = 5000, to the end of the file
    un-comment this line: ;error_log = "c:/wamp/logs/php_error.log"
 The moodle site should now load normally.  The layer that moodle sits on is updated (the php and the apache and the mysql) - allowing a moodle upgrade above 2.6.11.

Also - need to ensure I am calling the two moodle sync files from the cron.php file AND that it, php.exe, is called from within the correct new php path, php5.5.12, not the old php5.3.13.

Steps to ensure authentication and enrollment sync are both working .

Copy the block below from the old admin/cron.php file into the end of the new admin/cron.php file while updating the path to the php from 5.3.13 to 5.5.12.  Notice most of the lines in the cron.php file are REM out - only two actually do something.  sync the users, sync the enrollments.





 

No comments:

Post a Comment