Unix or Linux Installation

From MoodleDocs


Linux is an operating system—the software that controls a computer's hardware and lets you run programs. It's like the foundation that makes your computer usable. Linux is popular because it is free, open-source (anyone can see and improve its code), and highly reliable and secure.

People use Linux to run websites and applications because it is stable and can handle many users at once. Linux is an excellent choice for Moodle because it can efficiently run the needed web servers (like Apache or Nginx) and databases, and it supports the software tools Moodle requires. These factors make Linux a common and trusted base for hosting Moodle servers.

Running a Linux server may not suit everyone because it requires some technical expertise. Users need a basic understanding of the command-line interface and server management, which beginners or non-technical users often find challenging. Additionally, maintenance and management demand ongoing effort to properly set up, update, and secure the server; mistakes can easily lead to security vulnerabilities or downtime. For these reasons, Linux servers are best suited for users or organizations with technical skills or access to skilled administrators, while those seeking simpler, low-maintenance solutions might prefer alternatives that involve less hands-on management.

Alternatives to a Moodle server which might suit you better are:

  • Mount Orange is a demo site where you can try Moodle in a real educational environment as a manager, teacher, student, parent or privacy officer
  • Moodlecloud, which allows you to have your own Moodle and focus on using Moodle to create courses.
  • Shared Hosting provides a managed web server environment where you can install your own Moodle using CPanel
  • Moodle Partners offer specialized support, customization, and services for organizations that need a more tailored experience.


The following pages give installation information for specific Unix or Linux platforms. The Moodle community provides this information and may not have been thoroughly checked, and may be out of date (sometimes very). It is provided in the hope that it is useful.