/docker-moodle

Latest moodle docker

Primary LanguageShell

Steps to setup latest moodle on a docker based LAMP environment:

  1. On your local machine run this git command:

    git clone https://github.com/ymnoor21/docker-moodle.git

  2. CD into docker-moodle/ directory.

    cd docker-moodle/

  3. Build the image:

    docker build -t moodle .

  4. Create container and note the container id after running this command:

    docker run -d -p 8080:8080 moodle

  5. Replace the container id with:

    docker exec -it <container id from step 2> /bin/bash

  6. You will be taken to the container shell prompt. Now type the following command and press enter:

    ./init.sh

  7. It will install all the necessary software and setup moodle environment.

  8. After the installation finishes. Browse

    http://localhost:8080/moodle/

  9. You'll see moodle installation page. Press Next.

  10. Change "Data directory" from

/var/www/moodledata to /var/moodledata

  1. Press Next.

  2. Press Next.

  3. Change settings if you need to:

    a. Database host: localhost

    b. Database name: moodle

    c. Database user: moodle

    d. Database password: moodle

    e. Database port: 3306

  4. Press Next.

  5. Press Continue.

  6. Press Continue.

  7. The installer will run some scripts and will probably take couple of minutes to finish. So hang tight.

  8. Press Continue.

  9. Change Username to your name: macgyver (or whatever your name is)

  10. Now change the password by clicking on the link Click to enter text. I'd set it to something simple. Ex: Admin32!. So please remember the username, password combination.

  11. Add Email Address to your school email. Ex: somebody@someinstitude.edu

  12. You can continue to fill out other empty boxes but they are not required fields. So I wouldn't bother.

  13. So now Press Update Profile.

  14. Type Full site name, Short name for site. Change Default Timezone to America/Los_Angeles. Change noreply address to your email address. Ex: somebody@someinstitude.edu

  15. Press Save Changes.

  16. Congratulations. You're done installing moodle. You should be in admin panel now. Explore and Enjoy.