Note: You are currently viewing documentation for Moodle 2.8. Up-to-date documentation for the latest stable version of Moodle may be available here: Installing AMP.

Installing AMP: Difference between revisions

From MoodleDocs
(Removing comment about most up-to-date package becuase it was not correct.)
Line 35: Line 35:
== Windows ==
== Windows ==


Windows has slightly more variations as you can use [[Apache]] or Microsoft's [[IIS]] web servers. Again, here are some pointers
Windows has slightly more variations as you can use [[Apache]] or Microsoft's [[IIS]] Web Servers. The following one-click Web server installers include the Apache Web server, the MySQL database server, the PHP scripting language and the phpMyAdmin database (MySQL) manager. Some may include other components.


* [http://www.apachefriends.org/en/xampp-windows.html XAMPP]: Probably the best known one-click installer for Windows. Lots of documentation and discussion around. Definitely only for a personal web server
* [http://www.wampserver.com/en/ WampServer]: One of the best installers for Windows.
* [http://www.easyphp.org/ EasyPHP]: Another popular alternative to the above
* [http://bitnami.com/stack/wamp BitNami WAMP Stack]: A very good installer that allows other [http://bitnami.com/stacks BitNami Stacks] to be installed on top, like the [http://bitnami.com/stack/moodle BitNami Moodle Stack].
* [http://bitnami.com/stack/wamp BitNami WAMP Stack]: On 'one-click' installer with for MySQL, Apache and PHP which supports the BitNami applications modules to installed on top of it like the [http://bitnami.com/stack/wamp/modules#moodle BitNami Moodle module].
* [http://www.easyphp.org/ EasyPHP]: A good and known popular alternative.
* [http://php.net/manual/en/install.windows.php Official PHP Documentation]: A lengthy list of instructions for installing PHP on all manner of Windows and web server variations
* [http://www.apachefriends.org/en/xampp-windows.html XAMPP]: Probably the best known installer for Windows. It should only be used for development or as a personal web server.
* [http://php.net/manual/en/install.windows.php Official PHP Documentation]: Instructions to install PHP on all manner of Windows and Web server variations.
* [http://www.mysql.com/downloads/mysql/ MySQL]: Select Windows and download installer.  
* [http://www.mysql.com/downloads/mysql/ MySQL]: Select Windows and download installer.  
* [http://www.postgresql.org/download/windows/ PostgreSQL]: Download installer for Windows
* [http://www.postgresql.org/download/windows/ PostgreSQL]: Download installer for Windows.


=== Installer packages and components ===
=== Installer packages and components ===


As a reference, the following table lists the components of each package and its version (as of March 3, 2012):
The following table lists the components and versions of each package (as of September 4, 2013):


{| style="width:75%; height:75px" border="0"
{| style="width:75%; height:75px" border="0"
Line 52: Line 53:
| '''Product''' || '''Version''' || '''Httpd (Apache)''' || '''PHP''' || '''MySQL''' || '''PHPMyAdmin''' || '''Address'''
| '''Product''' || '''Version''' || '''Httpd (Apache)''' || '''PHP''' || '''MySQL''' || '''PHPMyAdmin''' || '''Address'''
|-  
|-  
| WampServer || 2.2d || 2.2.21 || 5.3.10 || 5.5.20 || 3.4.10.1 || [http://www.wampserver.com/en/ Web page]
| WampServer || 2.4 || 2.4.4 || 5.4.16 || 5.6.12 || 4.0.4 || [http://www.wampserver.com/en/ Web page]
|-  
|-  
| BitNami WAMP Stack || 5.3.25-0 || 2.4.4 || 5.3.25 || 5.5.30 || 4.0.0 || [http://bitnami.org/stack/wampstack/ Web page]
| || 2.2e || 2.4.2 || 5.4.3 || 5.5.24 || 3.4.10.1 ||  
|-  
|-  
| BitNami WAMP Stack || 5.4.15-0 || 2.4.4 || 5.4.15 || 5.5.30 || 4.0.0 ||  
| BitNami WAMP Stack || 5.4.19-0 || 2.4.4 || 5.4.19 || 5.5.32 || 4.0.5 || [http://bitnami.org/stack/wampstack/ Web page]
|-  
|-  
| EasyPHP || 5.3.9 || 2.2.21 VC9 || 5.3.9 VC9 || 5.5.20 || 3.4.9 || [http://www.easyphp.org/ Web page]
| || 5.3.26-0 || 2.4.4 || 5.3.26 || 5.5.30 || 4.0.0 ||
|-  
|-  
| EasyPHP || 5.4.0 RC4 || 2.2.21 VC9 || 5.4.0 RC4 VC9 || 5.5.19 || 3.4.9 ||  
| EasyPHP || 13.1 || 2.4.4 VC11 || 5.[5-2].x || 5.6.11 || 4.0.3 || [http://www.easyphp.org/ Web page]
|-  
|-  
| XAMPP || 1.7.7 || 2.2.21 || 5.3.8 || 5.5.16 || 3.4.5 || [http://www.apachefriends.org/en/xampp-windows.html Web page]
| || 13.1 || 2.4.4 VC9 || 5.[4-2].x || 5.6.11 || 3.5.8.1 ||
|-
| XAMPP || 1.8.3 || 2.4.4 || 5.5.3 || 5.6.11 || 4.0.4 || [http://www.apachefriends.org/en/xampp-windows.html Web page]
|-
| || 1.8.2 || 2.4.4 || 5.4.19 || 5.5.32 || 4.0.4 ||
|-  
|-  
| ----------------- || --------- || ---------- || ------------- || ------ || ------- ||  
| ----------------- || --------- || ---------- || ------------- || ------ || ------- ||  
Line 68: Line 73:
| XAMPP || 1.7.4 || 2.2.17 || 5.3.5 || 5.5.8 || 3.3.9 ||  
| XAMPP || 1.7.4 || 2.2.17 || 5.3.5 || 5.5.8 || 3.3.9 ||  
|-  
|-  
| XAMPP || 1.7.1 || 2.2.11 || 5.2.9 || 5.1.33 || 3.1.3.1 ||  
| || 1.7.1 || 2.2.11 || 5.2.9 || 5.1.33 || 3.1.3.1 ||  
|}
|}


Versions 1.7.1 and 1.7.4 of the XAMPP package were included because those are the versions on which the [http://download.moodle.org/windows/ Windows Moodle Package] are built (1.9.16 & 2.0.7 are under 1.7.1, and 2.1.4 & 2.2.1 under 1.7.4).
'''Important Notes'''
* PHP 5.5.x versions are built with VC11 (Visual Studio 2012 compiler). These builds require you to have the Visual C++ Redistributable for Visual Studio 2012 [http://www.microsoft.com/en-us/download/details.aspx?id=30679/ x64/86] installed. These PHP versions '''do not''' work in windows XP nor in Windows Server 2003.
 
* PHP 5.4.x versions are built with VC9 (Visual Studio 2008 compiler). These builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 [http://www.microsoft.com/en-us/download/details.aspx?id=5582/ x86] or [http://www.microsoft.com/en-us/download/details.aspx?id=15336/ x64] installed. These PHP versions '''are the last''' to support windows XP.
 
* XAMPP packages 1.7.4 and 1.7.1 were included in the table because those are the versions on which the [http://download.moodle.org/windows/ Windows Moodle Packages] are built: from Moodle 2.1.x to 2.5.x with XAMPP 1.7.4; and Moodle 1.9.19+ with XAMPP 1.7.1.
 
* Moodle version 2.0.x isn't available any more as a Windows Moodle Distribution.


==Vista and Windows 7==
==Vista and Windows 7==

Revision as of 19:34, 4 September 2013

AMP, stands for Apache, MySQL & PHP. This is not the only platform on which Moodle runs but is the most common and fine for basic installations.

'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).

First a word about PostgreSQL

If you would prefer to use the PostgreSQL database (and you should consider it) you can - when using the package type installers - just install it instead of MySQL. MySQL tends to be the universal choice with the simpler 'one-click' installers. For a 'one-click' installer with PostgreSQL, Apache and PHP you can check BitNami, it supports Windows (WAPP), Linux (LAPP) and Mac (MAPP).

Mac OS X

OSX comes with a suitable Apache web server and a not so suitable PHP (it doesn't have all the required extensions).

Here are some other possibilities (all are documented so this is not repeated here):

Linux

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). The packaged versions of Moodle are not recommended (it's not much harder to install from moodle.org download)

See (for example):

While one-click installers (e.g. XAMPP or BitNami LAMP Stack) exist for Linux, it is so simple to install the components the "right" way that they seem pointless. Using the standard method will make it much easier for you to obtain help and support.

Of course, if you wish to (or you need a particularly new version) you can compile all or some of the elements from source. All the elements have good documentation. The tricky one is PHP and some guidance for Debian/Ubuntu is here: Compiling PHP from source

Windows

Windows has slightly more variations as you can use Apache or Microsoft's IIS Web Servers. The following one-click Web server installers include the Apache Web server, the MySQL database server, the PHP scripting language and the phpMyAdmin database (MySQL) manager. Some may include other components.

Installer packages and components

The following table lists the components and versions of each package (as of September 4, 2013):

Product Version Httpd (Apache) PHP MySQL PHPMyAdmin Address
WampServer 2.4 2.4.4 5.4.16 5.6.12 4.0.4 Web page
2.2e 2.4.2 5.4.3 5.5.24 3.4.10.1
BitNami WAMP Stack 5.4.19-0 2.4.4 5.4.19 5.5.32 4.0.5 Web page
5.3.26-0 2.4.4 5.3.26 5.5.30 4.0.0
EasyPHP 13.1 2.4.4 VC11 5.[5-2].x 5.6.11 4.0.3 Web page
13.1 2.4.4 VC9 5.[4-2].x 5.6.11 3.5.8.1
XAMPP 1.8.3 2.4.4 5.5.3 5.6.11 4.0.4 Web page
1.8.2 2.4.4 5.4.19 5.5.32 4.0.4
----------------- --------- ---------- ------------- ------ -------
XAMPP 1.7.4 2.2.17 5.3.5 5.5.8 3.3.9
1.7.1 2.2.11 5.2.9 5.1.33 3.1.3.1

Important Notes

  • PHP 5.5.x versions are built with VC11 (Visual Studio 2012 compiler). These builds require you to have the Visual C++ Redistributable for Visual Studio 2012 x64/86 installed. These PHP versions do not work in windows XP nor in Windows Server 2003.
  • PHP 5.4.x versions are built with VC9 (Visual Studio 2008 compiler). These builds require you to have the Visual C++ Redistributable for Visual Studio 2008 SP1 x86 or x64 installed. These PHP versions are the last to support windows XP.
  • XAMPP packages 1.7.4 and 1.7.1 were included in the table because those are the versions on which the Windows Moodle Packages are built: from Moodle 2.1.x to 2.5.x with XAMPP 1.7.4; and Moodle 1.9.19+ with XAMPP 1.7.1.
  • Moodle version 2.0.x isn't available any more as a Windows Moodle Distribution.

Vista and Windows 7

Many people have trouble installing the stand alone local Moodle for Windows on Vista and Windows 7.

Here are some things you might want to try: