Moodle: step 1. Installing on a CloudPanel server
In the examples my-school.com is your site domain, myschool is the site user and 203.0.113.10 is the server address. Use your own values.
1. Create the site
- Log in to CloudPanel. Click "+ Add Site" → "Create a PHP Site".
- Application:
Moodle 5. The panel sets up the web server for Moodle. - Domain Name:
my-school.com. PHP Version:8.4. - Site User and password: you log in over SSH with them. Save the password.
- Click "Create".

2. Create the database
- Site → "Databases" tab → "Add Database".
- Database name:
my-school-db. User:my-school-user. Generate and save a password. - Click "Add Database".


3. Upload Moodle
Connect via SSH as the site user: ssh myschool@203.0.113.10. Run the commands one by one:
cd ~/htdocs
wget https://download.moodle.org/download.php/direct/stable503/moodle-5.3.tgz -O ~/tmp/moodle.tgz
rm -rf my-school.com/*
tar xzf ~/tmp/moodle.tgz --strip-components=1 -C my-school.com
mkdir ~/moodledata
rm ~/tmp/moodle.tgz- Moodle files end up in
/home/myschool/htdocs/my-school.com. - The
/home/myschool/moodledatafolder holds course files. It is outside the site and not reachable from the internet.

The latest Moodle is on download.moodle.org. Replace the version number in the link.
4. Set the root directory
Moodle 5 is served from the public folder. Without this setting Moodle shows an error.
- Site → "Settings" tab → "Domain Settings".
- Root Directory:
my-school.com/public. - Click "Save".

5. Run the installer
Open https://my-school.com/install.php in the browser. Without a certificate yet, the browser warns — click "Advanced" → "Proceed".
- Language — the installer language. Click "Next".

- Paths. The web address and Moodle directory are filled in. Data directory:
/home/myschool/moodledata. Click "Next".

- Database driver: "Improved MySQL (native/mysqli)". Click "Next".

- Database settings: host
localhost, database name, user and password from item 2. Keep themdl_prefix. Click "Next".

- License: click "Continue".
- Server checks: every line must be "OK". Click "Continue".


- Installation takes 5–10 minutes. Keep the page open. When the "Continue" button appears at the bottom, click it.

6. Administrator and site settings
- Administrator account: username, password (8+ characters: a digit, lower and upper case letters, a special character), first and last name, e-mail. Click "Update profile".

- Front page settings: full and short site name, time zone
Europe/Kyiv, no-reply address. Click "Save changes".

Installation is complete. The administrator dashboard opens.

Next: step 2. SSL and cron.