The Nginx, PHP and MariaDB server is installed automatically, but Moodle is not: you install, update and back it up yourself. Moodle is free; some third-party plugins and Moodle services are paid.
Choose the resources of your VPS
Moodle runs on all our Linux VPS plans: you only pay for the VPS.
With your consent, we measure which ads bring us customers and how the site is used. Without it, nothing is measured and the site works exactly the same. You can change your mind at any time. Cookie policy.
Install Moodle on an ACLClouds VPS with Nginx, PHP and MariaDB already set up: PHP extensions, the moodledata folder, the installer and cron.
Moodle is the most widely used open source learning platform. The Nginx + PHP + MariaDB image prepares the server, and you install Moodle on top.
Step-by-step procedure
Order the Nginx + PHP + MariaDB VPS
Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email, database name and MariaDB user, then connect over SSH as root.
Add the PHP extensions
Install the missing extensions, then set max_input_vars to 5000 in /etc/php/8.2/fpm/php.ini and /etc/php/8.2/cli/php.ini, as Moodle requires.
Upload Moodle and create moodledata
Download the version you want from download.moodle.org and extract it into the site root. Create the data folder outside that root.
Adjust the Nginx virtual host
Moodle uses addresses like file.php/path. Add the PHP configuration described on the Nginx page of the Moodle documentation to the virtual host, then reload Nginx.
Run the installer
Open your domain in the browser. Enter the moodledata folder, choose MariaDB, enter the database and user created at order, then create the admin account.
Enable the cron job
Moodle needs admin/cli/cron.php to run every minute as the www-data user. Add it with crontab -u www-data -e, configure SMTP, then take a backup from the panel.
Choose the resources of your VPS
Moodle runs on all our Linux VPS plans: you only pay for the VPS.
Recommended base: LEMP Web Server
VPS Mini: €3.99 per month incl. VAT with a 1-year term (or €4.99 per month with no commitment) · 2 vCPU · 8 GB RAM · 40 GB storage
VPS Essentiel: €7.99 per month incl. VAT with a 1-year term (or €9.99 per month with no commitment) · 4 vCPU · 16 GB RAM · 80 GB storage
VPS Performance: €17.59 per month incl. VAT with a 1-year term (or €21.99 per month with no commitment) · 8 vCPU · 48 GB RAM · 150 GB storage
VPS Pro: €27.99 per month incl. VAT with a 1-year term (or €34.99 per month with no commitment) · 12 vCPU · 64 GB RAM · 250 GB storage
Why run Moodle on a VPS?
Moodle is an open source learning management system written in PHP. It is used to publish courses, assignments, quizzes and forums, track learner progress and award badges. Schools, universities, training centers and companies rely on it. Hundreds of plugins add activities, themes and connections to other tools.
Self-hosting it on a VPS lets you choose the version, the plugins and where learners’ work and grades are stored. You tune PHP, the maximum upload size and the cron job Moodle needs. You also handle updates and backups.
Web server ready at order
The Nginx + PHP + MariaDB image is installed automatically, with the database and user you choose. You only add the PHP extensions and Moodle.
Root access for PHP and cron
Moodle needs specific PHP extensions, a cron job every minute and a max_input_vars setting. With root access you do all of this yourself.
Backups before updates
A Moodle update changes the database and the code. Start a VPS backup from the panel first, then roll back if a plugin breaks.
Reserved resources
The vCPUs and RAM are yours. An exam session with many learners online is not slowed down by other customers’ websites.
Before you start
Good to know: The Nginx, PHP and MariaDB server is installed automatically, but Moodle is not: you install, update and back it up yourself. Moodle is free; some third-party plugins and Moodle services are paid.
A Moodle version that accepts PHP 8.2 (for example 4.5 LTS or 5.0)
PHP extensions intl, gd and soap to add
A moodledata folder outside the site root, with enough space for course files
A domain pointing to the VPS IPv4, or a free aclclouds.online subdomain
An external SMTP service (port 587) for notifications
Install Moodle on your VPS
The main steps, to follow over SSH. The official documentation is the reference for the details.
Order the Nginx + PHP + MariaDB VPS: Order a VPS Mini with the Nginx + PHP + MariaDB image. Enter the domain, email, database name and MariaDB user, then connect over SSH as root.
Add the PHP extensions: Install the missing extensions, then set max_input_vars to 5000 in /etc/php/8.2/fpm/php.ini and /etc/php/8.2/cli/php.ini, as Moodle requires.
Upload Moodle and create moodledata: Download the version you want from download.moodle.org and extract it into the site root. Create the data folder outside that root.
Adjust the Nginx virtual host: Moodle uses addresses like file.php/path. Add the PHP configuration described on the Nginx page of the Moodle documentation to the virtual host, then reload Nginx.
Run the installer: Open your domain in the browser. Enter the moodledata folder, choose MariaDB, enter the database and user created at order, then create the admin account.
Enable the cron job: Moodle needs admin/cli/cron.php to run every minute as the www-data user. Add it with crontab -u www-data -e, configure SMTP, then take a backup from the panel.
For which projects?
Online courses for a school
Internal company training
Online quizzes and exams
Training provider platform
The essentials, included in every plan
No hidden extras for the essentials: protection, an IP address, a recovery console and support from real people are included from the first plan.
Anti-DDoS: Network protection is included on every service, with no paid option.
Dedicated IPv4: Each VPS has its own public address and full root access.
Recovery console: Take back control of your VPS with the noVNC console, even without SSH.
Support 7 days a week: By ticket and on Discord, from a team that knows your services.
No commitment: Monthly, cancellable at any time, or yearly to pay less.
Run Moodle on your own VPS.
Choose your resources, install, stay in control. No commitment.
Frequently asked questions
How do I install Moodle on a VPS?
Order a VPS with the Nginx + PHP + MariaDB image, which creates the site and the database. Add the php-intl, php-gd and php-soap extensions, set max_input_vars, put Moodle in the site root and create a moodledata folder outside it. Adjust the Nginx virtual host, run the web installer, then add the cron job that runs every minute.
Which VPS plan should I choose for Moodle?
For a platform starting with a few classes, the VPS Mini (2 vCPU, 8 GB RAM, 40 GB) works well. Needs grow with the number of learners online at the same time, especially during quizzes, and with videos stored in moodledata. Move to the VPS Essential (4 vCPU, 16 GB, 80 GB) as usage grows.
Is Moodle free?
Yes. Moodle is open source software under the GPL, with no license fees, including for commercial use. You only pay for the server. Some third-party plugins, themes or services offered by Moodle partners are paid, but they remain optional. We do not provide any software license.
Why must moodledata sit outside the site root?
The moodledata folder holds files uploaded by teachers and learners, course backups and the cache. If it were inside the site root, Nginx could serve those files directly, without Moodle’s access checks. Put it in /var/moodledata for example, give it to www-data and include it in your backups.
Why does Moodle need a cron job?
Moodle handles a lot of work in the background: sending notifications and forum emails, cleanup, grade calculations, automatic course backups. All of it goes through admin/cli/cron.php. Without this job running every minute, the admin panel shows a warning and part of the site stops working properly.