20 steps / 20 minutes to install Moodle ======================================= 00. Start secure session to VLE server - 'ssh sysadmin@xxx.xxx.xxx.xxx'. 01. Download Moodle from www.moodle.org and unpack to local system. export http_proxy=xxx.xxx.xxx.xxx wget http://download.moodle.org/stable19/moodle-weekly-19.tgz tar -xvzf moodle-weekly-19.tgz 02. Install the php graphics, curl, and xmlrpc libs as Moodle needs them. sudo apt-get update sudo apt-get install php5-gd php5-curl php5-xmlrpc 03. Change ownership of webroot - 'sudo chown www-data:www-data /var/www'. 04. Change permissions of webroot - 'sudo chmod 777 /var/www'. 05. Add a directive to the apache2 default site conf file to run index.php. cd /etc/apache2/sites-available sudo vi default add 'DirectoryIndex index.php' line after DocumentRoot line add 'AcceptPathInfo On' line after DirectoryIndex line save 06. Edit php config file to suit Moodle. sudo vi /etc/php5/apache2/php.ini memory_limit=40M session.bug_compat_warn = 0 post_max_size = 32M upload_max_filesize = 32M save 07. Re-start apache 'sudo /etc/init.d/apache2 restart' 08. Enter mysql and create an empty database mysql -u root -p SHOW DATABASES; CREATE DATABASE moodle; ALTER DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES, DROP,INDEX,ALTER ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'password'; (change password to suit) QUIT 09. Reload mysql grants mysqladmin -u root -p reload 10. Make a moodle data directory for uploaded files sudo mkdir /var/moodledata sudo chown www-data:www-data moodledata sudo chmod 777 moodledata 11. Copy contents of Moodle folder from (1) to the webroot. cd moodle cp -r * /var/www 12. Browse to http://xxx.xxx.xxx.xxx (add exception to your browser for xxx.xxx.xxx.xxx) 13. Choose language. 14. Check all php settings are green - if not don't go any further until corrected. If fails to progress the php.ini file is failing. Error orediting earlier. 15. Have installer create mysql database using user created above. 16. Check all server checks are green - if not don't go any further until corrected. 17. Agree to licence terms. 18. Click 'unattended operation' to get Moodle to create all the db tables. 19. Adjust administrator details to suit. username = sysadmin firstname = system lastname = administrator 20. Enter site details Full name = High School Short name = HS Description = Virtual Learning Environment