Building Moodle on SUSE Linux Enterprise Server 10


Building Moodle on SLES 10: Step by step directions


These directions, combined with a script you will use later, will help you install a Moodle server in about 15 minutes. We make a few assumptions, which I hope we make clear, but I think you find this to be one of the easier setups for Moodle on Linux.

Starting Point

We are starting from the assumption that you have already installed a SUSE Linux Enterprise Server 10 (SLES 10) Server.

We are also assuming that this server has a static IP address and a DNS record on your network. (If you do not have a DNS record but know the IP address, you can still follow these directions to get going but it is recommended that you do this before the installation to avoid a hairy mess later.
Lastly, we assume that this server is dedicated to hosting only Moodle. You can do whatever you want with this server other than easily host other website.

Thus, let’s say you named the server moodle and it had an IP address of Then when you are done with these procedures you will be able to locate your server at (or .org etc.) OR if you don’t have a DNS record for the server you can

Here we go!

  1. Log into the SLES server you created as root.
  2. Put the SLES10 DVD into the CD/DVD drive.
  3. Press the Computer button in the lower left corner of the screen and choose YaST
  4. Select “Software” from the left side of the YaST window and click on Software Management
  5. Choose “Patterns” from the “filter” pull-down menu located beneath the menu items in the upper-left corner of the window.
  6. Under the heading Primary Functions, select “Web and LAMP Server.” (Do not press accept yet)
  7. Now choose “Search” from the “filter” pull-down menu you just used.
  8. Type php in the search field and click “Search.”
  9. Check the box next to the following items from the list on the right side of the window: php5-gd, php5-iconv, php5-mbstring, and php5-mysql (leave any checks that may already exist)
  10. Click the Accept button located in the bottom right corner of the window.
  11. You will see a window pop-up indicating other automatic changes. Simply click “Continue”
    • The server will then install your selections. This may take a few minutes.
  12. When prompted to “install or remove more packages” click no.
  13. Close the YaST Control Center.
  14. From the Computer button in the bottom left corner of the screen, click Firefox which opens the web browser.
  15. Download Moodle 1.7 for Linux at and , when prompted, select “save to disk” to place it on the desktop.
  16. Place your mouse over the corner of the Firefox window to resize it to be on one half of your screen.
  17. Now point the Firefox browser to and, when prompted, select “save to disk” to place it on the desktop.
  18. Close Firefox. (You really need to do this.)
  19. Drag the file “” to the “root’s home” folder located in the upper left corner of the desktop.
  20. Double-click the moodle package you downloaded. It will Open in a program called File Roller. Click the “Extract” button.
  21. Click the arrows to the right of Desktop on the “Extract in folder” bar and choose “other” from the pull down menu
  22. Double-Click “File System” on the left side of the window that popped up and browse to /srv/www/htdocs and click “Open”
  23. Click “Extract” and close the window when it completes.
  24. Right click on the desktop and choose “Open Terminal” and type sh and hit the Enter key.
  25. A program which sets up some of the prerequisites of Moodle will run. Please read the screen and follow the prompts accordingly.
    • The script will ask you to enter a username and password for the database which runs your Moodle server. It will also launch the Firefox browser to help you begin the installation of Moodle.
  26. After entering a username and password for the database, you are prompted to press enter and Firefox will open. Resize Firefox so you can see the script running as well as Firefox.
  27. In Firefox, click the Language and click next
  28. You should see “Pass” for all of the PHP settings. Click “Next.”
  29. On the next screen, keep all of the default addresses and directories EXCEPT change the web address from //localhost/moodle to http://YOUR SERVER NAME.YOUR DOMAIN NAME/moodle (example and click “Next”
    • NOTE: If you have not created a DNS record for the server on your network, this is where you would place the IP address of ther server (example: If you want to change this later, you will need to modify this setting in the file /srv/www/htdocs/moodle/config.php. See why I suggest you have the DNS record first?! 🙂
  30. On the next screen, (My SQL) keep all of the defaults and in the “User” field, type the username you typed into the script (exp: moodleuser)
  31. In the password field, type the password you entered twice into the script
  32. Press Next
  33. On the next screen (Checking Environment), you should have OK next to all variables. If you have “Check” next to unicode, you are still OK so long as all users in your Moodle environment speak the same language. Click Next.
  34. On the next screen (Download Language Pack page), simply click Next. This download only included English but you can add other languages later.
  35. When you reach the configuration complete page, click “Continue.”
  36. On the next screen, read over the user agreement and choose “Yes” to accept.
  37. You will now see a series of pages where Moodle automates various configurations. Scroll to the bottom of each page and click “Continue.” You will have to do this a number of times.
  38. Once all configuration changes have been made, you will be brought to a web form to create the Moodle Admin account. Fill out the form accorting to your environment and click to update profile.
  39. Fill out the form to configure your Front Page and click “Save Changes” at the bottom of the page.
  40. You will be logged into the Moodle environment as the admin user you just created. I know you are excited to get started but you aren’t done yet!
  41. Close Firefox. (Yes, you need to do this. You will come back to your moodle server later.)
  42. Click on the “terminal” window to get back into the script. As directed, click Return or Enter.
  43. Once you see “Moodle installation complete,” close the terminal window and log off the server.
  44. Go to another computer and open a web browser. Point it to your server (example: ) NOTE: we removed the /moodle from the address to make it easier for your users.

Have fun with Moodle!

For more information visit:

(Visited 1 times, 1 visits today)


  • cthomas says:

    I have tried this tutorial four different times and every thing goes fine untill I get to number 36. From that point on I can get nothing to show up. When I run I get no errors. The lines in the script that says “Now commence with the Moodle web baseed installation by launching http://localhost/moodle to continue with the rest of the installation. Press to launch firefox automatically” What am I doing wrong?

  • Anonymous says:

    It appears that the site you list for downloading has changed and the file is no longer available. Could you put it up somewhere else, or could you at least post the text and we could copy/paste a new one.

  • Leave a Reply

    Your email address will not be published. Required fields are marked *