Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Installing AMP.
AMP, stands for Apache, MySQL & PHP. This is not the only platform on which Moodle runs but is the most common. This page describes how to install this basic software on a number of platforms - usually using 'one click' AMP installers.
NOTE: 'One-click' installers are rarely suitable or secure for production sites (i.e. public servers). They are intended only for standalone development, evaluation and testing (e.g. developing course materials before sending to a production Moodle site).
'All-in-one' Moodle installers for Windows and OSX are available at http://httpd.apache.org/docs/2.0/install.html (not intended for 'production' sites).
Mac OS X - MAMP
Complete Install Packages for Mac OS X are named Moodle4Mac. These do not have sufficient security for public, production servers--only use for private, local testing purposes.
These packages allow Moodle to be installed, along with the prerequisites that includes a web server, database and scripting language (Apache, MySQL and PHP in this case). Several versions of the complete install package are available. You will find versions for Intel based Macs and for older PPC based Macs. Please use the correct version for your processor.
AMP for OSX (primarily for development)
If you just want to install the basic components (with Moodle code, Liip have a neat 'one click' installer available from http://php-osx.liip.ch/. Note that it is primarily biased towards developers.
You should install the packages from your distribution's repository for Apache, PHP and MySQL. You will almost certainly need additional extensions for PHP (e.g. the extension for the database).
See (for example):
- Ubuntu - https://help.ubuntu.com/community/ApacheMySQLPHP
- Debian - http://wiki.debian.org/LaMp
- RedHat / Centos - http://www.howtoforge.com/quick-n-easy-lamp-server-centos-rhel
- SuSE / OpenSuSE - http://www.susegeek.com/internet-browser/install-configure-lamp-apachemysqlphp-in-opensuse-110/
For a complete description of installing an XAMPP webserver and then adding your own standard windows Moodle install package see Windows installation using XAMPP.
NOTE: There is a difference between the XAMPP Installer used in the Moodle/Windows/XAMPP installation package and the XAMPP webserver. The complete install package page has detailed instructions for a Windows installation using XAMPP and there is the XAMPP Installer FAQ.
Tips and Tricks for Windows XAMPP
There are lots of ways to start a Moodle after an install. Most Moodlers will have one or more "localhost" links on their computer installed in "Favorites" or even as a browser's default opening screen. But first a web server has to be started. Here are two ways to start them.
Automatic Windows services startup
In order to make starting Moodle more convenient in the future you could install the web and database servers as Windows services that are started automatically. To do this go to Start -> Run... and type the command "c:/moodle/server/service.exe -install" into Open box. Then click OK.
Start Moodle by typing localhost in the web browser and/or adding localhost as a favorite site.
Use the "xampp_start" or "xampp_restart" to start your webserver. You can install multiple localhost webservers on a computer. Each will have it's own start and restart programs.
- Create a shortcut on the start menu, favorites or desktop that points to each specific file like c:\Moodle19\restart_xampp.bat . Label each shortcut to a localhost differently, for example C_Moodle19, or Moodle16 or MoodleSchool.
Start Moodle by placing localhost in the web browser or adding it as a favorite site. Whichever localhost you restarted, that is the Moodle your web browser will find.
- Use the xampp_restart program. It will automatically close any running webserver on your computer before it starts the version of Moodle you want to run.
- Use any xampp_stop to close any running webserver on your computer.
As an alternative to the above package available from http://www.easyphp.org/
IIS for Windows
Once you have installed your web server and PHP you should be able to create a file (for example phpinfo.php in the document root) with the following in it:
You should be able to open this file in a web browser by going to to the URL localhost/phpinfo and see a web page that has PHP status information in it such as this.
Vista and Windows 7
Many people have trouble installing the stand alone local Moodle for Windows on Vista and Windows 7.
There are several solutions:
- A simple one is to use http://bitnami.org/stack/moodle
- Another solution is to look at these videos at Sebastian Sulinski Design for Windows Vista.
- Also, the page at Web Developer's Notes outlines how you can install an AMP on windows 7. Installing Moodle from there should be considerably easier.