Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Step-by-step Install Guide for Ubuntu.

Step-by-step Install Guide for Ubuntu: Difference between revisions

From MoodleDocs
(Ubuntu Linux Moodle server install)
 
Line 1: Line 1:
== Simple Moodle server test build using Ubuntu 6.06 LTS ==
=== Simple Moodle server build using Ubuntu 6.06 LTS Server on a standard desktop ===


[http://www.ubuntu.com/ Ubuntu 6.06] is a good tradeoff between up-to-date and stable. 
[http://www.ubuntu.com/ Ubuntu] has committed to five years of support for the LTS (Long Term Support) server version.
 
LTS because of Ubuntu committing to five years of Long Term Support on this version.
 
For this test server, I’m using a desktop with normal components. (Dell Optiplex)


=== Need: ===
=== Need: ===


*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]
*[http://www.ubuntu.com/products/GetUbuntu/download#lts Ubuntu 6.06 LTS server CD]
*x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection
*x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.
*One hour of time. (seriously!)
*One hour of time. (seriously!)


Line 16: Line 12:


#Start computer and use F12 to boot from CD.
#Start computer and use F12 to boot from CD.
#Select Install to hard drive.
#Select '''Install to hard drive'''.
#Select your language, Country, and keyboard layout (i.e. English, United States, American English)
#Select your '''language''', '''country''', and '''keyboard layout''' (i.e. English, United States, American English)
#Select autodetect network, if you have DHCP. Should be made a static IP in a development or production environment.
#Select '''autodetect network''', if you have DHCP. Should be made a static IP in a development or production environment.
#Enter your servername (i.e. moodletest)
#Enter your servername (i.e. moodletest)
#Select to manually edit the partition table.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes in production.
#Select to '''manually edit the partition table'''.  I’m doing my testing on a standard 40GB harddrive and will modify these sizes in production.
 
::/boot    ext3  200MB bootable  (needs to be on the first part of the drive)
:/boot    ext3  200MB bootable  (needs to be on the first part of the drive)
::/        ext3  10GB          (files are relatively static)
:/        ext3  10GB          (files are relatively static)
::swap              4GB          (nice to have a good amount of space)
:swap              4GB          (nice to have a good amount of space)
::/var      ext3  26GB          (variable content – uses rest of the drive)
:/var      ext3  26GB          (variable content – uses rest of the drive)
#Select '''timezone''' (i.e. central)
 
#Set clock to '''Universal Time''' (i.e. yes)
#Select timezone (i.e. central)
#Enter Administrators '''Full name''' (i.e. Joe Smith)
#Select if Universal Time (i.e. yes)
#Enter '''account name''' (i.e. joesmith)
#Enter Administrators name (i.e. Joe Smith)
#Enter account name (i.e. joesmith)
#Enter a secure password  (‘abcde’ is not a good one!)
#Enter a secure password  (‘abcde’ is not a good one!)
#Restart
#Let the computer restart
#Login your account
#Login your account
#sudo vi /etc/apt/sources.list  (uncomment the universe source – about line 22)
#sudo vi /etc/apt/sources.list  (uncomment the universe source – about line 22)
Line 54: Line 48:
#On another computer open a web browser and put in your server address found in line 31.
#On another computer open a web browser and put in your server address found in line 31.
#Complete the Moodle install using a secure username and password
#Complete the Moodle install using a secure username and password
#Go to a bar for a few hours
#Reboot
#Go to a bar for a few hours.
#Come back and tell your boss that you FINALLY got the test server running.
#Come back and tell your boss that you FINALLY got the test server running.

Revision as of 02:59, 24 January 2007

Simple Moodle server build using Ubuntu 6.06 LTS Server on a standard desktop

Ubuntu has committed to five years of support for the LTS (Long Term Support) server version.

Need:

  • Ubuntu 6.06 LTS server CD
  • x86 desktop computer, keyboard, monitor, mouse, and firewalled internet connection.
  • One hour of time. (seriously!)

Directions:

  1. Start computer and use F12 to boot from CD.
  2. Select Install to hard drive.
  3. Select your language, country, and keyboard layout (i.e. English, United States, American English)
  4. Select autodetect network, if you have DHCP. Should be made a static IP in a development or production environment.
  5. Enter your servername (i.e. moodletest)
  6. Select to manually edit the partition table. I’m doing my testing on a standard 40GB harddrive and will modify these sizes in production.
/boot ext3 200MB bootable (needs to be on the first part of the drive)
/ ext3 10GB (files are relatively static)
swap 4GB (nice to have a good amount of space)
/var ext3 26GB (variable content – uses rest of the drive)
  1. Select timezone (i.e. central)
  2. Set clock to Universal Time (i.e. yes)
  3. Enter Administrators Full name (i.e. Joe Smith)
  4. Enter account name (i.e. joesmith)
  5. Enter a secure password (‘abcde’ is not a good one!)
  6. Let the computer restart
  7. Login your account
  8. sudo vi /etc/apt/sources.list (uncomment the universe source – about line 22)
  9. sudo apt-get update
  10. sudo apt-get dselect-upgrade
  11. sudo apt-get install apache2 mysql-server openssh-server
  12. mysqladmin –u root password databasepassword
  13. OTHER MYSQL PASSWORD COMMAND
  14. sudo apt-get install libapache2-mod-php5 php5-gd php5-mysqli
  15. sudo apt-get install ntp ntp-simple unattended-upgrades
  16. sudo apt-get install clamav unzip zip aspell-en
  17. sudo apt-get install libapache2-mod-security php5-ldap php5-odbc (requirements for our site)
  18. cd /var/www
  19. sudo wget http://download.moodle.org/stable17/moodle-latest-17.tgz
  20. sudo tar –zxf moodle-latest-17.tgz
  21. sudo mkdir /var/moodledata
  22. sudo chown –R www-data.www-data /var/moodledata /var/www/moodle
  23. sudo vi /etc/apache2/sites-available/default (modify lines 4 and 9 from /var/www to /var/www/moodle)
  24. PUT MOODLE MYSQL command lines HERE!
  25. ifconfig (look for your server’s ip address on the 2nd line)
  26. On another computer open a web browser and put in your server address found in line 31.
  27. Complete the Moodle install using a secure username and password
  28. Reboot
  29. Go to a bar for a few hours.
  30. Come back and tell your boss that you FINALLY got the test server running.