Choosing what to download
Before running a single command, decide which Chamilo package you need. There are two main options, and they suit different goals.
| Option | What you get | Best for |
|---|---|---|
| Tagged release package | A pre-built, tested archive of a specific version, with dependencies and front-end assets already included | Production campuses that real learners will use |
| Master branch ZIP | A snapshot of the current development code straight from Chamilo development community | Evaluation, development, testing new features and contributing |
The download button on chamilo.app fetches the master branch archive from the official chamilo/chamilo-lms repository: . It is genuine and unmodified, but because it is source code rather than a release build, you must install PHP and JavaScript dependencies yourself. This guide covers both paths and points out where they differ.
Why the distinction matters
A release package has been frozen, tested and labelled with a version number. Everyone who installs that version gets exactly the same files, which makes upgrades, troubleshooting and community support far easier. When you report a problem on a release, others can reproduce it on the same code.
The master branch moves every day. It contains the latest improvements, but also work in progress that may change before the next release. Installing it on a test server is an excellent way to preview what is coming, to check whether a bug you care about has already been fixed, or to prepare a contribution. Running a live campus on it, however, means accepting that a future pull of the code might change behaviour without warning. If you do choose the master ZIP for anything important, record the date you downloaded it so you know exactly which state of the code you are running.
Verifying that your download is genuine
Always download Chamilo from the official repository or the official project website, never from file-sharing sites or unofficial mirrors. The Chamilo development community link used on this site points straight to the chamilo/chamilo-lms repository, so the archive is generated by Chamilo development community from the project's own code. For release packages, compare the file name and size with those listed on the official releases page, and be suspicious of any "pre-configured" or "premium" version offered elsewhere. Modified copies are a common route for malware into web servers.
Planning the server
Chamilo is a classic web application: Apache or Nginx serves the pages, PHP runs the code and MariaDB or MySQL stores the data. For a fresh installation, a dedicated Ubuntu 24.04 LTS server is the most straightforward choice, and it is the environment the official instructions are written for.
Recommended sizing
| Campus size | vCPU | RAM | Disk |
|---|---|---|---|
| Test or pilot (under 100 users) | 2 | 4 GB | 20 GB |
| Small organisation (up to 1,000 users) | 2 to 4 | 4 to 8 GB | 40 GB+ |
| Large campus (several thousand active users) | 8+ | 16 GB+ | 100 GB+ with separate database server |
The official README notes that Chamilo has run on a 2 vCPU, 2 GB RAM virtual machine, but that building the development environment needs at least 4 GB of RAM. If you plan to install from the master ZIP, start with 4 GB to avoid memory errors while compiling front-end assets.
Domain name
Chamilo expects to run on its own domain or subdomain, such as campus.example.org, rather than in a sub-folder of another website. Create a DNS record pointing your chosen name at the server before you begin, so you can add an SSL certificate at the end.
Step 1: Update the system and install the stack
Connect to your server over SSH with a user that has sudo rights, then update the package lists and install Apache, MariaDB, PHP and the extensions Chamilo relies on.
sudo apt update && sudo apt -y upgrade
sudo apt install apache2 libapache2-mod-php mariadb-server \
php-apcu php-bcmath php-cli php-curl php-gd php-intl \
php-mbstring php-mysql php-soap php-xml php-zip \
unzip git curl
Check the PHP version once installation finishes:
php -v
The current Chamilo source expects PHP 8.3 or newer, which Ubuntu 24.04 provides by default. If you are installing an older 1.11.x release instead, it needs an older PHP version, so match the PHP version to the code you downloaded.
Recommended PHP settings
Edit the Apache PHP configuration file (for example /etc/php/8.3/apache2/php.ini) and raise a few limits so teachers can upload course material comfortably:
upload_max_filesize = 256M
post_max_size = 256M
memory_limit = 512M
max_execution_time = 300
date.timezone = Europe/Madrid
Replace the time zone with your own. A correct time zone matters because deadlines, session dates and logs all depend on it.
Step 2: Create the database
Secure MariaDB, then create an empty database and a dedicated user for Chamilo.
sudo mysql_secure_installation
sudo mysql
Inside the MariaDB prompt:
CREATE DATABASE chamilo CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
CREATE USER 'chamilo'@'localhost' IDENTIFIED BY 'replace-with-a-long-unique-password';
GRANT ALL PRIVILEGES ON chamilo.* TO 'chamilo'@'localhost';
FLUSH PRIVILEGES;
EXIT;
Write down the database name, user and password. The web installer will ask for them later.
Step 3: Download and unpack Chamilo
Option A: the master ZIP
cd /var/www
sudo wget -O chamilo-master.zip
sudo unzip chamilo-master.zip
sudo mv chamilo-lms-master chamilo
Because this is source code, install Composer and Node.js, then fetch dependencies and build the interface assets:
cd /var/www/chamilo
sudo apt install composer nodejs npm
sudo corepack enable
composer install
yarn install
yarn build
If yarn build fails with an out-of-memory error, add swap space or increase the server's RAM temporarily. Building assets is the most memory-intensive part of the whole installation.
Option B: a tagged release
Download the latest release archive from the official releases page on Chamilo development community, extract it into /var/www and rename the folder to chamilo. Release packages already include dependencies and built assets, so you can skip Composer and Yarn entirely.
Step 4: Configure Apache
Chamilo ships with a virtual-host template. Copy it, then edit the server name and paths to match your domain and installation folder.
cd /var/www/chamilo
sudo cp public/main/install/apache.dist.conf /etc/apache2/sites-available/campus.conf
sudo nano /etc/apache2/sites-available/campus.conf
Make sure the DocumentRoot points to the public folder inside your Chamilo directory and that AllowOverride All is set for it, so Chamilo's own rewrite rules work. Then enable the site and the required modules:
sudo a2ensite campus
sudo a2dissite 000-default
sudo a2enmod rewrite ssl headers expires
sudo systemctl restart apache2
Step 5: Set file permissions
The installer must be able to write its configuration and cache. Create the environment file and give the web-server user ownership of the writable paths.
cd /var/www/chamilo
sudo touch .env
sudo chown -R www-data: .env config/ var/
Avoid giving write access to the entire directory. Only the paths that genuinely need it should be writable.
Step 6: Run the web installer
Open your domain in a browser, for example http://campus.example.org. Chamilo detects that it is not yet installed and launches the installation wizard. The wizard walks through these stages:
- Language. Choose the language for the installation and the platform default.
- Requirements check. Chamilo lists PHP extensions, settings and folder permissions. Anything shown in red must be fixed before continuing; refresh the page after each fix.
- Licence. Read and accept the GNU GPL licence.
- Database. Enter the host (usually
localhost), port, database name, user and password created earlier. Use the test button to confirm the connection. - Platform settings. Set the administrator's name, email, username and a strong password, plus the portal name and your organisation's details.
- Installation. Chamilo creates tables and default data. This can take a minute or two.
When the wizard reports success, sign in with the administrator account to confirm everything works.
Step 7: Lock down configuration
Once installation is complete, configuration files should no longer be writable by the web server. Hand them back to root:
cd /var/www/chamilo
sudo chown -R root: .env config/
The var/ folder must stay writable, because it stores cache, logs and uploaded files.
Step 8: Add HTTPS
Never run a live campus over plain HTTP, since logins and learner data would travel unencrypted. Certbot obtains and renews free certificates from Let's Encrypt:
sudo apt install certbot python3-certbot-apache
sudo certbot --apache -d campus.example.org
Certbot edits your Apache configuration and sets up automatic renewal. Afterwards, visit your campus using https:// and confirm that the padlock appears.
Step 9: Schedule background tasks
Some Chamilo features, such as sending notification emails or processing scheduled actions, rely on tasks that run periodically. Check the installation documentation bundled with your version for the exact commands, then add them to the web-server user's crontab so they run automatically.
Step 10: Set up backups before going live
A campus without backups is a risk waiting to happen. At a minimum, back up:
- The database, using a nightly dump with
mysqldumpormariadb-dump. - The
var/folder, which contains uploaded course files. - The
.envfile andconfig/folder, which hold your configuration.
Store backups on a different machine or storage service, and test a restore on a staging server at least once. A backup you have never restored is only a hope.
Troubleshooting installation problems
| Problem | Likely cause | Fix |
|---|---|---|
| Blank page or HTTP 500 error | Missing PHP extension or PHP version mismatch | Check the Apache error log and install the missing extension |
| Requirements page shows folders in red | Wrong ownership of var/, config/ or .env | Re-run the chown command for those paths |
| Interface loads without styles | Front-end assets not built, or rewrite rules ignored | Run yarn build for source installs and confirm AllowOverride All |
| Database connection refused | Wrong credentials or host | Re-check the user, password and host in the wizard |
| Large uploads fail | PHP upload limits too low | Raise upload_max_filesize and post_max_size, then restart Apache |
Confirming the installation is healthy
Before configuring anything, take ten minutes to confirm that the platform is working correctly end to end. Sign in as administrator and open the system status page to review PHP settings and folder permissions. Create a test course, upload a document of a few megabytes and open it as a learner. Send yourself a password-reset email to prove that outgoing mail works. Finally, review the web-server error log for warnings generated during these actions. A clean log at this stage means any later problem is far easier to trace.
After installation: first configuration steps
With the platform running, spend an hour on the essentials before inviting users:
- Set the portal name, logo and colours in the administration panel.
- Choose default languages and the time zone.
- Decide on registration rules: self-registration, approval or administrator-only accounts.
- Configure outgoing email so password resets and notifications are delivered.
- Create a test course and a test learner account to walk through the learner experience.
- Review security settings, including password policy and session lifetime.
Installing on other platforms
Ubuntu is the reference platform, but Chamilo runs anywhere you can provide a modern web server, PHP and MariaDB or MySQL.
- Debian. Package names are almost identical to Ubuntu. On older Debian releases you may need an additional repository to obtain a recent enough PHP version.
- Red Hat family (AlmaLinux, Rocky Linux). Use the distribution's module streams or a well-known PHP repository to install the required version, and remember to label writable folders correctly if SELinux is enforcing.
- Nginx instead of Apache. Chamilo works behind Nginx with PHP-FPM. Because Nginx ignores
.htaccessfiles, you must translate the rewrite rules into the Nginx server block. Start from the configuration examples in the documentation bundled with your version. - Shared hosting. Some hosts offer one-click Chamilo installers. These are convenient for small pilots, but check which version they install and how quickly they update it, since one-click installers sometimes lag behind security releases.
- Windows or macOS for local testing. Developer stacks that bundle Apache, PHP and MariaDB can run Chamilo for evaluation on a laptop. They are fine for exploring features, but not for production.
Sizing PHP and the database for growth
As your campus grows, a few settings have more impact than adding raw hardware. Enable PHP OPcache so compiled code is reused between requests, and make sure the APCu extension is installed for local caching. Give MariaDB enough memory for its buffer pool to hold the most frequently used data; on a dedicated database server, a large share of available RAM is typical. Monitor slow queries during busy periods such as exam weeks, since they reveal where tuning will help most. Finally, keep uploaded media under control: large video files are better hosted on a streaming service and embedded in courses, which keeps both disk usage and backup times reasonable.
Keeping your installation up to date
Watch the official repository's releases and the project's announcements. Apply security releases promptly, and test feature upgrades on a staging copy first. Before any upgrade, back up the database and files, read every changelog between your current and target versions, and schedule the work outside busy teaching periods.
Summary
A clean Chamilo installation follows a predictable path: choose the right package, prepare an Ubuntu server with Apache, PHP and MariaDB, create a database, unpack the code, build dependencies if you used the master ZIP, configure the virtual host, run the web wizard, then lock configuration files, enable HTTPS and set up backups. Following the steps in order and checking requirements before you start avoids nearly every common error and leaves you with a secure, maintainable campus.




