Difference between revisions of "Installing AMP"

Jump to: navigation, search

Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: Installing AMP.

(Installer packages and components)
(First a word about PostgreSQL)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
== First a word about PostgreSQL ==
 
== 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.  
+
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 [http://bitnami.org BitNami], it supports Windows ([http://bitnami.org/stack/wappstack WAPP]), Linux ([http://bitnami.org/stack/lappstack LAPP]) and Mac ([http://bitnami.org/stack/mappstack MAPP]).
  
 
== Mac OS X ==
 
== Mac OS X ==
Line 18: Line 18:
 
* [http://www.macports.org/ MacPorts]: A complete Linux-style package repository. You will find the AMP components here. See [https://trac.macports.org/wiki/howto/MAMP Getting Apache, MySQL, and PHP Running under MacPorts]
 
* [http://www.macports.org/ MacPorts]: A complete Linux-style package repository. You will find the AMP components here. See [https://trac.macports.org/wiki/howto/MAMP Getting Apache, MySQL, and PHP Running under MacPorts]
 
* [http://www.finkproject.org/ Fink]: an alternative to MacPorts.
 
* [http://www.finkproject.org/ Fink]: an alternative to MacPorts.
 +
* [http://bitnami.org/stack/mampstack BitNami MAMPStack]: 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.org/stack/moodle#nativeInstaller BitNami Moodle module].
  
 
== Linux ==
 
== Linux ==
Line 28: Line 29:
 
* SuSE / OpenSuSE - http://www.susegeek.com/internet-browser/install-configure-lamp-apachemysqlphp-in-opensuse-110/
 
* SuSE / OpenSuSE - http://www.susegeek.com/internet-browser/install-configure-lamp-apachemysqlphp-in-opensuse-110/
  
While one-click installers (e.g. XAMPP) 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.  
+
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]]
 
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]]
Line 38: Line 39:
 
* [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.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.easyphp.org/ EasyPHP]: Another popular alternative to the above
 
* [http://www.easyphp.org/ EasyPHP]: Another popular alternative to the above
 +
* [http://bitnami.org/stack/wampstack BitNami WAMPStack]: 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.org/stack/moodle#nativeInstaller BitNami Moodle module].
 
* [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://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.mysql.com/downloads/mysql/ MySQL]: Select Windows and download installer.  
 
* [http://www.mysql.com/downloads/mysql/ MySQL]: Select Windows and download installer.  

Latest revision as of 10:55, 8 November 2012

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. Again, here are some pointers

  • XAMPP: Probably the best known one-click installer for Windows. Lots of documentation and discussion around. Definitely only for a personal web server
  • EasyPHP: Another popular alternative to the above
  • BitNami WAMPStack: On 'one-click' installer with for MySQL, Apache and PHP which supports the BitNami applications modules to installed on top of it like the BitNami Moodle module.
  • Official PHP Documentation: A lengthy list of instructions for installing PHP on all manner of Windows and web server variations
  • MySQL: Select Windows and download installer.
  • PostgreSQL: Download installer for Windows

Installer packages and components

As a reference, the following table lists each package, its version and its components (as of July 30, 2012):

Product Version Httpd (Apache) PHP MySQL PHPMyAdmin Address
WampServer 2.2e 2.2.22 5.3.13 5.5.24 3.4.10.1 Web page
BitNami WAMP Stack 5.3.15 2.2.22 5.3.15 5.5.21 3.5.2 Web page
BitNami WAMP Stack 5.4.5-0 dev 2.4.2 5.4.5 5.5.21 3.5.2
EasyPHP 12.0 2.4.2 VC9 5.4.4 VC9, 5.3.14 VC9, 5.2.17 5.5.25a 3.5.1 Web page
EasyPHP 5.3.8.1 2.2.21 VC9 5.3.8 VC9 5.5.16 3.4.5 Web page
XAMPP 1.8.0 2.4.2 5.4.4 5.5.25a 3.5.2 Web page
----------------- --------- ---------- -------------------------- ------ -------
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

Versions 1.7.1 and 1.7.4 of the XAMPP package were included because those are the versions on which the Windows Moodle Package are built (1.9.18+ is under 1.7.1, and 2.1.7+, 2.2.4+ & 2.3.1+ are under 1.7.4).

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: