Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
- PHP installation:
- - Download VC14 x64 Non Thread Safe version from http://windows.php.net/download#php-7.0
- - PHP 7.0+ requires VC CRT 14 (Visual Studio 2015). https://www.microsoft.com/en-us/download/details.aspx?id=48145
- - Click on Download and choose the version based on your operating system and install it
- - Create a folder in C:\Program Files called "PHP" and extract the php archive in the folder created
- - Go in the the php folder and edit "php.ini-production" to "php.ini"
- - Open the Control Panel --> System --> Advanced system settings --> Advanced tab --> Environment Variables
- - System Variables:
- - Select "Path" as variable and click on Edit
- - 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
- - Press OK
- - Edit php.ini and set the following parameters (uncomment the instructions, that consists to delete the semicolon)
- - cgi.force_redirect=0
- - date.timezone = <Country/City>
- - fastcgi.impersonate = 1
- - extension_dir = "./ext"
- - cgi.fix_pathinfo=1
- - Save and close php.ini
- - Open command prompt and execute the command php -info, if there is output, it means that php is working
- - Edit php.ini and enable the following modules
- - extension=php_mysql.dll
- - extension=php_mysqli.dll
- - extension=php_gd2.dll
- - extension=php_intl.dll
- - extension=php_curl.dll
- - extension=php_ldap.dll
- - Save and close
- - Open command prompt and execute the command php -m to list the modules installed
- Enable PHP in IIS
- - On the taskbar, click Start, point to Administrative Tools, and then click Server Manager
- - In the Server Manager hierarchy panel, click on Roles
- - Scroll to the Role Services section, and then click Add Role Services
- - Select CGI, and then click Next
- - On the Confirm Installation Selections page, click Install
- - From IIS Manager click on Handle Mappings
- - Click on Add Module Mapping
- - Request path: *.php
- - Module: FastCgiModule
- - Executable: C:\PHP\php-cgi.exe
- - Name: PHP7
- - Click on Request Restrictions, check Invoke handler and select file or forlder, press OK, and OK again, then Yes to enable php in IIS
- - Create on IIS root directory: C:\inetpub\wwwroot a file called test.php and insert these instructions
- - <?php phpinfo(); ?>
- - Save and close the file
- - 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
- - Delete test.php
- Install MySQL:
- - Download MySQL Community Server for windows platform from https://dev.mysql.com/downloads/mysql/
- - Click on Download Windows (x86, 32-bit), MySQL installer MSI and after choose the second download (the bigger one in size)
- - Click on "No thanks, just start my download"
- - Click on the installer and select run
- - Accept license and click on next
- - Select Server only for "Choose a setup type", click next and then on Execute
- - The Status should be complete, so click on next and again on next
- - On the section Type and Networking, select Service machine from the choice list Config Type
- - TCP/IP and open a firewall port for network access must be selected and port should be 3306, click on next
- - Choose and reinsert the root account password, the actual root pass is: #_M00dl3_ keep attention they are zeros in the middle
- - 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
- - Click on next nad again on next on the section Plugins and Extensions
- - Configure MysQL server as Windows Server, Start the MySQL server t System Startup and Standard System account must be selected
- - Windows Service Name: MySQL57, click on next
- - Click on Next and then on Execute, wait until you can press the button Finish
- - Then click on next and on finish to end the MySQl installation
- Install Moodle:
- - Edit php.ini and enable the following modules
- - extension=php_mbstring.dll
- - extension=php_openssl.dll
- - extension=php_soap.dll
- - extension=php_xmlrpc.dll
- - Save and close
- - Restart IIS
- - Click on Start --> Administrative Tools --> Internet Information Services (IIS) Manager
- - Click on IP-C6336481 or whatever is the right name of the server and click Restart on the actions panel
- - Create a database named Moodle as described
- - Click on Start --> All programs --> MySql --> MySql Server 5.7 --> MySql Server5.7 Command Line (The second one)
- - Enter the MySQL root password and a prompt named "mysql>" should be appear
- - Type what is inside the "": "create database moodle;"
- - Query OK should be appear to notify that the db has been created
- - Download Moodle software as described
- - Open the browser and paste this link: https://download.moodle.org/
- - Select Moodle 3.1.3+ then for 3.13 version download the zip version
- - Unzip the folder hust downloaded inside C:\inetpub\wwwroot
- - Right click on the zip file and select extract all..
- - Click on Browse and choose C:\inetpub\wwwroot or just paste the path, and then click oK
- - Create a folder named moodledata inside C:\inetpub
- - Edit the permission of moodledata folder and add modify permission to the IUSR user as described
- - Right click on moodledata and click on properties, then click on security tab
- - Click on Edit..
- - Click on Add..
- - Insert iusr in the text area "Enter the object names to select" and click on OK
- - Select IUSR in Group or user names and the following must be checked:
- - Modify and click on Advanced
- - Select iusr and click on Change Permissions..
- - Select iusr and click on Edit..
- - If is it possible to check Modify directly, click on it and press ok
- - Otherwise check the following
- - Create files / write data
- - Create folders / append data
- - Write attribute
- - Write extended attributes
- - Delete subfolders and files
- - Delete
- - Click on OK until every explorer windows are closed
- - Edit the permission of moodle folder in C:/inetpub/wwwroot and add modify permission to the IUSR user
- - Follow the same instructions used for the foolder moodledata
- - Open your browser, type the IP address of your server/moodle and proceed with installation process using the web installer
- - Insert the IP address of the server (in this case localhost): localhost/moodle
- - If an installation page doesn't shows up, try with localhost/moodle/install.php
- - Otherwise open IIS manager, select directory browsing and click enable, and retry the instructions, then disable the directory browsing
- - When the installation page shows up, select english as language for the installation and click on next
- - Data directory should be C:\inetpub\moodledata and click on next
- - Choose as database driver Improved MySQL
- - Fill the form with these information
- - Database host: localhost
- - Database name: moodle
- - Database user: root
- - Database password: #_M00dl3_
- - Click on next, read the licence and click on continue
- - Scroll down and click on continue
- - All the system modules should be installed, click on continue
- * Note for Glen: I stopped the installation in this point because you have to insert private details *
- - At this point you need to complete your profile with your information and to click on updrage profile then
- - Then you have to insert information about the site and timezone, then click on Save changes
- - Admin User page should be appear and at this point the installation is completed.
- This guide has been created basically following these videos:
- PHP: https://www.youtube.com/watch?annotation_id=annotation_3433094355&feature=iv&src_vid=UeP981EFVnI&v=ddxl5naQCno
- MySQL: https://www.youtube.com/watch?v=R4Yrc8t6nI0
- Moodle: https://www.youtube.com/watch?v=UeP981EFVnI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement