How to install Moodle:
First: download the version for your operating system from the official site. This is
http://download.moodle.com You can also download some plugins from there.
Second: Make your empty database and a folder on hard drive to save the files of moodle courses and materials in your.
Third: Open PHPs configuration file (usually called php.ini) or in the Apache .htaccess file. Moodle required part of the PHP settings you are active, to work correctly. So make sure that the following settings are active like those:
--------------------------
safe_mode = 0 (necessary)
memory_limit = 40M (varies: minimum 16M, 32M Moodle v1.7, 40M Moodle v1.8, 128M large sites)
session.save_handler = files (unless you are using another handler, e.g. mm)
magic_quotes_gpc = 1 (preferred but not necessary, 0 will be recommended in 2.0)
magic_quotes_runtime = 0 (necessary)
file_uploads = 1
session.auto_start = 0
session.bug_compat_warn = 0
--------------------------
Next you need to reset maximum upload size of file attachments, which is 2Mbytes and set it to 16Mbytes, like here:
---------------------------
post_max_size = 16M
upload_max_filesize = 16M
---------------------------
Fourth: Create your own .htaccess file in Moodles directory with following lines:
---------------------------
DirectoryIndex index.php index.html index.htm
php_value memory_limit 40M (adjust to your version of Moodle)
php_flag magic_quotes_gpc 1
php_flag magic_quotes_runtime 0
php_flag file_uploads 1
php_flag session.auto_start 0
php_flag session.bug_compat_warn 0
-------------------------
Warning: If your Apache version installed is 2, paste these lines too:
------------------------
DirectoryIndex index.php index.html index.htm
php_value memory_limit 40M (adjust to your version of Moodle)
php_flag magic_quotes_gpc 1
php_flag magic_quotes_runtime 0
php_flag file_uploads 1
php_flag session.auto_start 0
php_flag session.bug_compat_warn 0
-------------------------
Otherwise, paste this line:
--------------------------
AcceptPathInfo on
--------------------------
Warning: Use the file .htaccess carefully, because it can make you server slow.
When you have completed the steps above, run install.php to create config.php.
Installation
First step: Choose a language
Second step: Checking your PHP settings...
Third step: Accepting your data directory...
Fourth step: Choose your database...
Note: Username field must be: root (default power user)
Fourth step: Server Checks...
Fifth step: Download your Language pack...
Sixth step: Creating config.php...
Seventh step: Set up administrator account...
Eighth step: New settings of the front page...
Last step: Create new course...
For more questions see http://docs.moodle.org/en/Installation/ on the official site.
Enjoy!