Académique Documents
Professionnel Documents
Culture Documents
XAMPP is a fully functional web server package. It is built to test web based programs on a personal
computer. It is not meant for online access via the web on a production server. This page describes
how to install the XAMPP webserver package of programs and how to install a Moodle standard
package on the server which was created.
TIP: These guidelines are intended for a Standard Moodle installation on a Windows PC for a
private or test Moodle installation, not a production (public) site or service. XAMPP-lite is
used to create a Complete install packages for Windows which has a different installation
process.
CONTENTS
[hide]
1 Overview
1.1 XAMPP
2 Preparation
7 Troubleshooting
7.1 Bitnami
7.2 Skype
7.3 Still having problems but do not have Skype installed, using Windows 10?
8 See also
Overview
Note: This page was updated showing an installation for XAMPP 1.7.1 but some older
screenshots were kept. It is now October 2015 and XAMPP's current version is 5.6.8 and
Moodle is 3.0 Windows is no longer supporting XP, Windows 10 is the desktop latest and
greatest.
This is a guide for installing XAMPP and Moodle on a computer. The instructions are in the
process of being updated. You may find the older instructions in previous versions of
MoodleDocs.
XAMPP
Alternatively, install in C:\xampp123 if you plan on installing more than one webserver
Use control.exe in the XAMPP folder to start and stop Apache and MySQL
then use config button to change the http listening port to something like
127.0.0.1:181
Type localhost in your browser, or 127.0.0.1:181 (if you changed the port number)
You should get to localhost/xampp splash page, your localhost webserver is running.
Alternative rename the moodle folder if you plan on having different versions of
Moodle
You will need to know port number and the usual Moodle Installation initial questions.
o
Xampp uses the Mariadb database (based upon MySql), if the install says your
MySQL database is too old go to the c:\xampp\htdocs\moodlel\config.php file and
change the database line to $CFG->dbtype = 'mariadb';
If you have not changed the database password, The dbuser = 'root' and dbpass =;
The Moodle install process takes a long time. Be patient, even when things don't look like
anything is happening.
Install XAMPP
Use control.exe in XAMPP folder to start and stop Apache and MySQL
then use config button to change the listening port to something like 127.0.0.1:181
Type localhost in your browser, or 127.0.0.1:181 (if you changed the port number)
Click on the Moodle icon to allow Bitnami to install the latest version of Moodle.
You will need to know port number and the usual Moodle Installation initial questions.
The Moodle install process takes a long time. Be patient, even when things don't look like
anything is happening.
What follows are old XP instructions which will not help much.
Preparation
Get Moodle
Download the standard version of Moodle you wish to install from Moodle.org Standard install
packages.
Alternative, once XAMPP is installed use the Moodle link and allow Bitnami to download a
current version and start the free install for you.
Get XAMPP
Go to apachefriends.org and download XAMPP for Windows. This example assumes that you
have downloaded the Installer package. There are several XAMPP packages to download.
Installer is about 1/2 the size of the same package as a zip file.
Run the installer, eventually you will be presented with an option about where to install the
package. A best practice is to give the xampp folder a name that is unique. For example in
C:\xampp568
Continue with the installation, this will take a while!
Eventually you will be presented with the option to install Apache, MySQL, Filezilla and
Mercury as a service.
Its probably best to choose No for now. You can always enable these as services later.
Next youll be asked if you want to start the XAMPP Control Panel. Say yes. You can find the
XAMPP-control.exe file in your XMAMPP folder. It is useful.
Launch XAMPP
There are several ways to start your webserver.
o When the XAMPP Control Panel has launched, click the Start buttons for Apache
and MySQL (see below).
2. Alternatively, there are several start stop bat and exe files in the xampp folder. The
XAMPP-control.exe file takes the place of these.
If Apache fails to run i.e. the "Running" text with the green background keeps
disappearing) and you are using Skype or another program that uses port 80 e.g. IIS please review "Troubleshooting" at the end of these instructions.
When phpMy Admin has launched in your browser window, enter the name of your
database in the Create new database field. Usually this is simply moodle, but you
might say moodle310.
You should see the database on the left with your "moodle MySQL database name without
files in it and/or a notice that it was created.
MySQL security
Security on a localhost may not be a big concern. The recent versions of XAMPP do not set
a password for root, the superuser. Go to the file C:\xampp\phpmyadmin\config.inc.php, edit
the line $cfg['Servers'][$i]['password'] = ; For example to:
$cfg['Servers'][$i]['password'] = 'password2016';
Extract the Moodle files to htdocs. A default folder named moodle is created with all
the Moodle folders and files within it. If you anticipate wanting to have different versions
of Moodle on this web server, change the name of the3 folder from moodle to say
"moodle31' and then the next one to say "moodle35", etc.
Moodledata folder
It is a good practice to manually create the moodledata folder. In an standard default install,
Moodle will look for it in the top most level of folders on your server, the same level as
htdocs, apache, and php folders. If you anticipate adding different versions of moodle on
your XAMPP server, give the moodledata folder a unique name.
You may have to change the permissions of the folder in some operating systems. To do
this right click on the moodledata folder, select properties and the "Security" tab.
Another box will pop up. Select "Users" and give them "Modify" and "Write" permissions,
along with whatever existed already.
You have now installed a webserver on your computer. Next you need to get Moodle to
install itself. You will use your favorite web browser to do this.
Other pages in MoodleDocs describe the install process. We will just cover the first few
screens.
Browser address
In your web browser, type the path to the folder containing the Moodle files in te address
bar in this example its http://localhost/moodle.
Select language
The initial install page will ask you to choose your preferred language.
Select language
Diagnostic report
A diagnostic report is displayed hopefully every line has an "OK" in the status column.
If not you may need to address some issues. Clicking on the report link will give you
some hints to cure the problem. Generally speaking a line that has a "check" in the
status column will allow you to continue.
In this example the database created is moodle153. If you created a password for
root place it here. If you want the MySQL user admin to log into the moodle MySQL
database, place that user and the password here.
As a best practice, change the "mdl_" prefix to something else, perhaps "mdl_30_".
In later versions of Moodle you maybe asked for the database port number. Refer to
the XAMPP-Control.exe program main screen for that information. The default
maybe 3306.
TIP: You may want a separate database for each version of Moodle. UsephpMyAdmin to
create the database (remember should be UTF-8)with a name something like moodle30.
Then on this screen put the new database name.
TIP: DO NOT USE THE ROOT USER WITHOUT A PASSWORD FOR PRODUCTION
INSTALLATIONS AS THIS CREATES A SECURITY VULNERABILITY.
When you have added or edited information on the page, click the Next
button to continue.
TIP: This information is creating and can later be edited in the htdocs/moodle/config.php file.
Server check
Confirmed
Troubleshooting
Bitnami
Skype
If XAMPP does not work when you launch your browser and you
have Skype enabled it may be necessary to change the port
settings. You may also have issues with other programs and it
might be easier to change the port settings in XAMPP and Moodle.
Here is how to change them in Skype.
You may need to re-start your computer for this to take effect.
Or you can quit your Skype session while you are working on
Moodle.
Check for another program which may be using port 80. IIS is
commonly found to be the culprit. You can put the service called
World Wide Web Publishing Service on manual. If you use MS's
Shared space, then do not fight city hall, leave it running.
You can change the port for you XAMPP webserver. The easiest way is
to use XAMPP-Control.exe, then click on the config button for Apache.
This will open up the httpd.conf file. Look for the Listen lines. A best
practice is to comment out (with a #) the current active line and type in
a new line. For example you might type Listen 127.0.0.1:181
Next you will need to go to the Moodle config.php file and change the
wwwroot location by adding the port to the address. For example:
$CFG->wwwroot = 'http://127.0.0.1:181/moodle';
Don't forget to save the file and restart Apache.