Skip to content

A script that sets up a Moodle development environment in Ubuntu

License

Notifications You must be signed in to change notification settings

junpataleta/moodle-ubuntu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build workflow

moodle-ubuntu

A script that sets up a Moodle development environment in Ubuntu

Disclaimer: This is only meant for use on development and testing environments. Do NOT use this for production environments!

Setup

  1. Download and install Ubuntu Desktop.

    • If you're setting up an Ubuntu virtual machine using VirtualBox, follow these instructions.
  2. Open a terminal and install git

    sudo apt update && sudo apt install -y git
  3. Clone this repository.

    git clone https://github.com/junpataleta/moodle-ubuntu.git
    cd moodle-ubuntu
    • Note: If you're using VirtualBox, this is a good point to take a snapshot of the machine first, so it would be easier to reset in case you need to reinstall when the setup script gets updated in the future.
  4. Copy config-dist.sh to config.sh and edit the Git-related or MDK-related settings in config.sh.

  5. Run the script

    ./setup.sh
  6. Grab some coffee, walk the dog, cook your lunch, do the laundry, or whatever.😛

After setup

After the installation, you should have the following:

  • Apache server

  • PHP versions supported by the lowest security-supported version of Moodle and the next major Moodle version (main).

    • PHP versions supported by currently supported versions:

      • PHP 7.4
      • PHP 8.0
      • PHP 8.1
      • PHP 8.2
      • PHP 8.3 (tentative)
    • To switch PHP versions, open a terminal and run ~/apps/switchphp.sh PHPVER where PHPVER is any of the installed PHP version numbers. e.g. to switch to PHP 8.1

      ~/apps/switchphp.sh 8.1
  • PostgreSQL server version supported by your Ubuntu distribution.

    • Username: postgres
    • Password: moodle
  • MySQL server version supported by your Ubuntu distribution.

  • MDK

    • Two instances are created by MDK during setup:
      • A moodle.git instance based on the main branch: http://localhost/stable_main
      • An integration.git instance based on the main branch: http://localhost/integration_main
    • Default admin password for both instances is test.
    • Default database engine is pgsql.
  • Behat-related stuff:

  • Docker with Docker compose

  • Ngrok

Enjoy!

About

A script that sets up a Moodle development environment in Ubuntu

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages