Installation Guide for Ubuntu
Ubuntu provides an integrated Moodle package consistent with other Ubuntu/Debian packages. While the Ubuntu/Debian package may not install the latest cutting-edge development version of Moodle, it is more likely to work well in an Ubuntu system.
Installation from a package manager
The Ubuntu/Debian package can be installed using a Package Manager (such as Synaptic Package Manager, Adept Package Manager, or KPackageKit), but installation usually is more transparent and successful when the package is installed (using the apt-get tool) from a command-line interface. You may notice that many installation options are not displayed when installing from a package manager. Please note that Moodle 1.9.4 is not compatible with PHP 5.3, so currently (May 2010) installing moodle using apt-get or synaptic won't work. You need to install a more recent version of Moodle or wait until there is a more recent version in the ubuntu 10.4 repository (see https://bugs.launchpad.net/ubuntu/+source/moodle/+bug/578797).
Installation from the command-line interface
The command-line interface is the default in an Ubuntu server without a desktop, and it is possible, but not recommended, to run Moodle on a standalone server without a desktop. Of course, an Ubuntu or Kubuntu desktop is easily added to a server (using one of the commands: sudo apt-get install ubuntu-desktop or sudo apt-get install kubuntu-desktop). From the Ubuntu desktop the command-line interface is reached using Terminal; from a Kubuntu desktop it is reached using Konsole.
Prepare your server
Moodle is meant to be run on a server. It requires Apache2, the PHP scripting language, and a database (either MySQL or postgreSQL). While many users feel postgreSQL is a better database, MySQL is more widely used and is easier for first time users (since there are many integrated packages that use it). A LAMP server (Linux, Apache2, MySQL, PHP) can easily be installed from the command-line interface:
sudo tasksel install lamp-server
If you are using ubuntu 11.04 it does not have tasksel installed you will need to install it
sudo apt-get install tasksel
When installing the LAMP server, note the MySQL root password carefully. This will be required during Moodle installation.
Moodle must know where the server is located. (You must also have a way for other users to reach it.) The FQDN (Fully Qualified Domain Name) refers to the location of the server on which the Moodle database is located. In general, there are two options: localhost (meaning the database will be located on the same computer on which Moodle will be installed) or a URL. (Of course, the URL could still refer to the same computer).
Don't worry, whichever option you choose can be changed later. For initial installation, it is easiest to use localhost as the FQDN (and also wherever it is available as an installation option).
ReadMore:http://docs.moodle.org/20/en/Step-by-step_Installation_Guide_for_Ubuntu