I need to upgrade from WAPP 22 to WAMP 25. WAMP 25 has versions of php and apache needed for moodle to upgrade past version 2.6.11. That is my plan, to upgrade each of the four servers . At a later date, to then upgrade moodle from 2.6.11 to 2.9.x or maybe even 3.0
These are steps and thoughts to follow
Ensure first that the c drive on the server has ample free space to copy the entire wamp folder. Below are current sizes of the wamp folder on each server.
- .10 wamp folder = 1.95 GB
- .9 wamp folder = 3.2 GB
- .8 wamp folder = 2.2 GB
- .7 wamp folder = 5.3 GB
2) rename the wamp folder from wamp to wamp22.
3) execute the wamp25 installer, located in c:\server downloades
- follow and accept defaults
- hopefully nothing about annoying file, vcredist_x64.exe missing.
- the vcredist_x64 and _x86 are both located in c:\server downloades
Once the WAMP 25 installer is complete - you have to move content from the WAMP22 folder.
Rename the new default mysql data folder in the WAMP25 directory, appending new or not_to_be_used to the end of it. Copy the data folder from the old install (now called WAMP22) into the data folder in the new install.
4) In the new WMAP25 folder, rename wamp\bin\mysql5.6.17\data to wamp\bin\mysql5.6.17\data-original
4.5) copy the content of the wamp22\bin\mysql\mysql5.5.24\data folder into wamp\bin\mysql\mysql5.6.17\data include the \data\ folder and its content
5) Activate the vhost directive in the new apache .ini file. wamp\bin\apache\2.4.9\conf\httpd.conf (line 513)
6) rename the vhost file wamp\bin\apache\2.4.9\conf\extra\httpd-vhosts.conf to httpd-vhosts.con-original
8) copy the file wamp22\bin\apache\apache2.2.22\conf\extra\httpd-vhosts.conf
to wamp\bin\apache\apache2.4.9\extra\
9) after moving it, edit the httpd-vhosts.conf file - using apache 2.4 style directive.
Depending on the server, the apache file will have more or less statements like this, one each for each moodle instance on the server. for example
Directory "c:\wamp\www\student"
Require all granted
Directory
10) Restart the WAMP25 service - using the systray icon
11) Remove the old mysql service
Remove the old apache service
12) Create a new mysql service
Create a new apache service
13) Copy the wamp22\www folder into the wamp\www folder - this moves all the moodle code over to new install (again, make sure there is ample drive space to do this)
14) Restart wamp services
15) Update the php ini file in the new install at wamp\bin\apache\apache2.4.9\bin\php.ini
Make the following changes to php.ini
- post_max_size = 1024 M
- upload_max_filesize = 1024 M
- max_execution_time = -1
- max_input_time = -1
- add this line to the end of the file :max_input_vars = 5000
c:\wamp\bin\php\php5.3.13\php.exe -f c:\wamp\www\student\auth\db\cli\sync_users.php
c:\wamp\bin\php\php5.3.13\php.exe -f c:\wamp\www\student\enrol\database\cli\sync.php
Thank you so much for sharing.
ReplyDeleteWeb Development Service in India