Installation in a Windows environment
XAMPP is a free Apache distribution that contains MySQL and PHP (as well as Perl) and exists for a number of operating systems. The Moodle distribution for Windows makes full use of XAMPP and is located at https://download.moodle.org/windows. The installation works on all the latest Windows PCs and server variants.
The XAMPP-based Moodle distribution is only suitable for servers with a small number of users. For larger Windows installations, you have to install Moodle manually. This involves installing a database server (MS SQL or any other support system), a web server (Microsoft IIS or Apache), and PHP, separately. You can find details about this process at https://docs.moodle.org/en/Windows_installation.
Once downloaded, follow these ensuring steps:
- Copy the distribution to a folder on your PC and unzip the archive in your folder of choice.
- Make sure any software that uses port 80 (such as Skype) is not running, or change its settings to point it to an alternative port.
- Double-click on
StartMoodle.exe
. - If you have a firewall installed, allow any shown services to be executed.
- The XAMPP service will run in the Windows background.
- Go to your web browser and enter
http://localhost
to your address bar. - You will see the same installer being launched as the one described for the LAMP environment. All values have already been populated; all you have to do is navigate through all the screens until you see the familiar Setup administrator account. This process will take a few minutes.
- Enter the administrator details and select Update profile.
- Enter the Front Page settings for your site.
- Check that no warnings are displayed in the Notifications section of the Site administration area in the Settings block.
That's it! Your Moodle system is now up and running and you are now able to use Moodle locally or from a web browser on another machine as long as your IP address is accessible via the network you are on.
To stop using Moodle, double-click on StopMoodle.exe
. If you have a firewall installed, you might have to allow the program to be executed.
Instead of starting and stopping Moodle manually, you can start Apache and MySQL automatically as Windows services. In the server directory of your Moodle system, you find an executable called service.exe
, which you have to run with the -install
parameter as administrator, as in the following example:
C:/moodle/server/service.exe -install