Professional Documents
Culture Documents
Main Page
Recent changes
Help Step-by-step Install Guide for Ubuntu
Documentation Contents
1 What you need to start
About Moodle
2 Directions
Teacher
2.1 Install Ubuntu
Administrator
2.2 Install MySQL (skip Postgresql)
Developer
2.3 Install Postgresql (skip MySQL)
2.4 Install Apache
Search
2.5 Install other software
2.6 Install Moodle
2.7 Configure Moodle website
Go Search
3 Other Resources
Toolbox
What links here
Related changes
Upload file
What you need to start
Special pages
Ubuntu 6.06 LTS server CD
Printable version
A test x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.
Permanent link
One hour of time. (seriously!)
Directions
Install Ubuntu
Start computer and use F12 to boot from CD.
Select your language, country, and keyboard layout (i.e. English, United States, American English)
Select manually configure and set an IP address (or autoconfig if you don't know).
Select to manually edit the partition table. I’m doing my testing on a standard 40GB harddrive and will modify these sizes for production.
/boot ext3 200MB bootable (may need to be under cylinder 1024 on your harddrive to be bootable )
/ ext3 10GB (files are relatively static)
swap 4GB (4xRAM if you don't have much memory, down to 1xRAM if you have gobs of memory)
/var ext3 26GB (variable content – uses rest of the drive)
sudo reboot
Generated by www.PDFonFly.com
Install MySQL (skip Postgresql)
At this point we'll need to log in again to the server and type:
Replace the following string NewRootDatabasePassword with a secure password of your own choosing.
There is no space between the -p and the password on the second command.
We now need to create the Moodle database and Moodle user in MySQL.
The mysql command will prompt for your NewRootDatabasePassword (from above). Replace NewMoodleDatabasePassword with a secure
password of your own choosing.
mysql -u root -p
> CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
> GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword';
> GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword';
> FLUSH PRIVILEGES;
> QUIT
The above also creates a backup user moodlebackup so that you can use mysqldump to make database backups without accident.
Edit the file '/etc/postgresql/8.1/main/pg_hba.conf' and on line 79 change the words ident sameuser to md5.
Install Apache
Generated by www.PDFonFly.com
The following mod-security, ldap, and odbc libraries are optional.
Restart Apache
Install Moodle
On the command line, type:
cd /var/www
----
in ubuntu 8.04 it should be:
sudo tar zxf moodle-latest-19.tgz
----
We now need to edit the location of the default web site. On lines five and ten, replace /var/www/ with /var/www/moodle/. Restart Apache.
On another computer open a web browser and put in your server address
Complete the Moodle install using a secure username and password
Other Resources
Setting up the Perfect Ubuntu 6.06 server
Ubuntu 6.06 Server Guide - HTML PDF Generated by www.PDFonFly.com
Ubuntu - 1 2 security
Debian - 1 2 security
Linux - 1 2 3 security
MySQL - 1 2 security
Apache - 1 2 security
Modsecurity apache2 module
Another Ubuntu and Moodle install document
Moodle Security
This page was last modified 10:04, 5 May 2008. This page has been accessed 53,924 times. Content is available under GNU
Public License. Privacy policy About MoodleDocs Disclaimers
Generated by www.PDFonFly.com