Before you proceed to install Moodle on windows, you need Visual C++ Redistributable for Visual Studio 2012 installed on your server. You can download it from this link. Download Visual C++ Redistributable for Visual Studio 2012. Also, you need 1 GB of memory for optimum performance.
- At first, download the latest stable version of Moodle. Please click on download Moodle. We suggest you download a zip file.
- Once you download and extract the moodle, move it to the root of your website.
- Create a MySQL database and database user. Please refer to create MySQL DB from SolidCP.
- Go to the file config-dist.php and update the created database name, db username and it's password.
- Rename the file config-dist.php to the config.php
- Now create a folder and name it moodledata. Now, open the config.php file. Find the variable $CFG->dataroot and set its value to ‘C:\your root path\moodledata’
- Find variable $CFG->wwwroot in config.php and set its value to ‘http://yourwebsite.com’
- Find variable $CFG-> dbtype and set its value to ‘mysqli’ or ‘mariadb’ as per your required database.
- Now, open your website in browser with URL HTTP://yourwebsitename.com/install.php and you will find the below page.
- select your English and click on Next. If you are facing the error like $CFG-> dataroot is not writable. You will need to provide write permission to your application for wwwroot directory.
- Once you fix the error, you will get the below page. Click to continue button.
- You will need to correct all the server checks on the below page. You must have the latest stable version of PHP or you will not get the continue button.
- Once you are done with all server check (Ok in green button), click on the continue button. It may take 5-10 minutes to install all the Moodle components.
- You will be asked for the administrator details on the next page. Enter all the below details.
- Username: administrator (default username is admin, However, we can change it)
- New Password: your administrator password
- First name: First name of administrator
- Surname: Surname of administrator
- Email Address: Enter email address of administrator
- Email Display: Select ‘Hide my email address from non-privileged users’
- City: City of administrator
- Timezone: Your timezone
- Now, click on the update profile button.
- You will see a Frontpage setting. Enter the below details.
- Full Site Name: Enter required website name.
- Shortname: Set your Moodle website shortname
- Front Page Summary: Add the details ofyour institute.
- Default timezone: Add your timezone.
- No-reply address: Enter your mail id
- Click on Save changes button.
- You will get the below image once the moodle installation is completed.