Advertisement
Guest User

glenn

a guest
Nov 28th, 2016
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.94 KB | None | 0 0
  1. Follow this steps to install Moodle on windows server 2008 R2, with the database on the same machine. (It is assumed that IIS 7.5 is already installed on the machine)
  2. PHP installation:
  3. - Download VC14 x64 Non Thread Safe version from http://windows.php.net/download#php-7.0
  4. - PHP 7.0+ requires VC CRT 14 (Visual Studio 2015). https://www.microsoft.com/en-us/download/details.aspx?id=48145
  5. - Click on Download and choose the version based on your operating system and install it
  6. - Create a folder in C:\Program Files called "PHP" and extract the php archive in the folder created
  7. - Go in the the php folder and edit "php.ini-production" to "php.ini"
  8. - Open the Control Panel --> System --> Advanced system settings --> Advanced tab --> Environment Variables
  9. - System Variables:
  10. - Select "Path" as variable and click on Edit
  11. - Add this string at the end C:\Program Files\PHP;C:\Program Files\PHP\ext; and press OK in order to add them to the Default Path
  12. - Press OK
  13. - Edit php.ini and set the following parameters (uncomment the instructions, that consists to delete the semicolon)
  14. - cgi.force_redirect=0
  15. - date.timezone = <Country/City>
  16. - fastcgi.impersonate = 1
  17. - extension_dir = "./ext"
  18. - cgi.fix_pathinfo=1
  19. - Save and close php.ini
  20. - Open command prompt and execute the command php -info, if there is output, it means that php is working
  21. - Edit php.ini and enable the following modules
  22. - extension=php_mysql.dll
  23. - extension=php_mysqli.dll
  24. - extension=php_gd2.dll
  25. - extension=php_intl.dll
  26. - extension=php_curl.dll
  27. - extension=php_ldap.dll
  28. - Save and close
  29. - Open command prompt and execute the command php -m to list the modules installed
  30.  
  31. Enable PHP in IIS
  32. - On the taskbar, click Start, point to Administrative Tools, and then click Server Manager
  33. - In the Server Manager hierarchy panel, click on Roles
  34. - Scroll to the Role Services section, and then click Add Role Services
  35. - Select CGI, and then click Next
  36. - On the Confirm Installation Selections page, click Install
  37. - From IIS Manager click on Handle Mappings
  38. - Click on Add Module Mapping
  39. - Request path: *.php
  40. - Module: FastCgiModule
  41. - Executable: C:\PHP\php-cgi.exe
  42. - Name: PHP7
  43. - Click on Request Restrictions, check Invoke handler and select file or forlder, press OK, and OK again, then Yes to enable php in IIS
  44. - Create on IIS root directory: C:\inetpub\wwwroot a file called test.php and insert these instructions
  45. - <?php phpinfo(); ?>
  46. - Save and close the file
  47. - Open the browser and type in the address bar 127.0.0.1/test.php. A page with the php version and options should appears
  48. - Delete test.php
  49. Install MySQL:
  50. - Download MySQL Community Server for windows platform from https://dev.mysql.com/downloads/mysql/
  51. - Click on Download Windows (x86, 32-bit), MySQL installer MSI and after choose the second download (the bigger one in size)
  52. - Click on "No thanks, just start my download"
  53. - Click on the installer and select run
  54. - Accept license and click on next
  55. - Select Server only for "Choose a setup type", click next and then on Execute
  56. - The Status should be complete, so click on next and again on next
  57. - On the section Type and Networking, select Service machine from the choice list Config Type
  58. - TCP/IP and open a firewall port for network access must be selected and port should be 3306, click on next
  59. - Choose and reinsert the root account password, the actual root pass is: #_M00dl3_ keep attention they are zeros in the middle
  60. - in case you want to change your mysql root password follows the instructions on https://dev.mysql.com/doc/mysql-windows-excerpt/5.7/en/resetting-permissions-windows.html
  61. - Click on next nad again on next on the section Plugins and Extensions
  62. - Configure MysQL server as Windows Server, Start the MySQL server t System Startup and Standard System account must be selected
  63. - Windows Service Name: MySQL57, click on next
  64. - Click on Next and then on Execute, wait until you can press the button Finish
  65. - Then click on next and on finish to end the MySQl installation
  66.  
  67. Install Moodle:
  68. - Edit php.ini and enable the following modules
  69. - extension=php_mbstring.dll
  70. - extension=php_openssl.dll
  71. - extension=php_soap.dll
  72. - extension=php_xmlrpc.dll
  73. - Save and close
  74. - Restart IIS
  75. - Click on Start --> Administrative Tools --> Internet Information Services (IIS) Manager
  76. - Click on IP-C6336481 or whatever is the right name of the server and click Restart on the actions panel
  77. - Create a database named Moodle as described
  78. - Click on Start --> All programs --> MySql --> MySql Server 5.7 --> MySql Server5.7 Command Line (The second one)
  79. - Enter the MySQL root password and a prompt named "mysql>" should be appear
  80. - Type what is inside the "": "create database moodle;"
  81. - Query OK should be appear to notify that the db has been created
  82. - Download Moodle software as described
  83. - Open the browser and paste this link: https://download.moodle.org/
  84. - Select Moodle 3.1.3+ then for 3.13 version download the zip version
  85. - Unzip the folder hust downloaded inside C:\inetpub\wwwroot
  86. - Right click on the zip file and select extract all..
  87. - Click on Browse and choose C:\inetpub\wwwroot or just paste the path, and then click oK
  88. - Create a folder named moodledata inside C:\inetpub
  89. - Edit the permission of moodledata folder and add modify permission to the IUSR user as described
  90. - Right click on moodledata and click on properties, then click on security tab
  91. - Click on Edit..
  92. - Click on Add..
  93. - Insert iusr in the text area "Enter the object names to select" and click on OK
  94. - Select IUSR in Group or user names and the following must be checked:
  95. - Modify and click on Advanced
  96. - Select iusr and click on Change Permissions..
  97. - Select iusr and click on Edit..
  98. - If is it possible to check Modify directly, click on it and press ok
  99. - Otherwise check the following
  100. - Create files / write data
  101. - Create folders / append data
  102. - Write attribute
  103. - Write extended attributes
  104. - Delete subfolders and files
  105. - Delete
  106. - Click on OK until every explorer windows are closed
  107. - Edit the permission of moodle folder in C:/inetpub/wwwroot and add modify permission to the IUSR user
  108. - Follow the same instructions used for the foolder moodledata
  109. - Open your browser, type the IP address of your server/moodle and proceed with installation process using the web installer
  110. - Insert the IP address of the server (in this case localhost): localhost/moodle
  111. - If an installation page doesn't shows up, try with localhost/moodle/install.php
  112. - Otherwise open IIS manager, select directory browsing and click enable, and retry the instructions, then disable the directory browsing
  113. - When the installation page shows up, select english as language for the installation and click on next
  114. - Data directory should be C:\inetpub\moodledata and click on next
  115. - Choose as database driver Improved MySQL
  116. - Fill the form with these information
  117. - Database host: localhost
  118. - Database name: moodle
  119. - Database user: root
  120. - Database password: #_M00dl3_
  121. - Click on next, read the licence and click on continue
  122. - Scroll down and click on continue
  123. - All the system modules should be installed, click on continue
  124. * Note for Glen: I stopped the installation in this point because you have to insert private details *
  125. - At this point you need to complete your profile with your information and to click on updrage profile then
  126. - Then you have to insert information about the site and timezone, then click on Save changes
  127. - Admin User page should be appear and at this point the installation is completed.
  128.  
  129.  
  130. This guide has been created basically following these videos:
  131. PHP: https://www.youtube.com/watch?annotation_id=annotation_3433094355&feature=iv&src_vid=UeP981EFVnI&v=ddxl5naQCno
  132. MySQL: https://www.youtube.com/watch?v=R4Yrc8t6nI0
  133. Moodle: https://www.youtube.com/watch?v=UeP981EFVnI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement