Chamilo is a popular open-source learning management system (LMS) that allows educators and students to create and manage online courses. In this tutorial, we will show you how to install Chamilo 1.11.8 on Rocky Linux 8.
Before we begin, make sure you have a fresh installation of Rocky Linux 8 and that you have a user account with sudo privileges.
First, update the package index on your Rocky Linux 8 system by running the following command:
sudo dnf update
Next, install the Apache web server, MariaDB database server, and PHP with the following command:
sudo dnf install httpd mariadb-server php php-common php-pdo php-gd php-mysqlnd
After installing the required packages, start the Apache and MariaDB services and enable them to start on boot by running the following command:
sudo systemctl start httpd mariadb && sudo systemctl enable httpd mariadb
With the Apache and MariaDB services started, secure your MariaDB installation by running the following command:
sudo mysql_secure_installation
This will launch the MariaDB security script. Follow the prompts to set a password for the MariaDB root user, disable remote root login, and remove anonymous users.
Next, log in to the MariaDB shell as the root user with the password you set in the previous step:
mysql -u root -p
Once you are logged in to the MariaDB shell, create a new database and user for Chamilo by running the following commands:
CREATE DATABASE chamilo;
GRANT ALL PRIVILEGES ON chamilo.* TO 'chamilo'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;
Replace password
in the above commands with a strong password for the chamilo
user.
With the MariaDB database and user created, download the Chamilo 1.11.8 installation package with the following command:
wget <https://github.com/chamilo/chamilo-lms/releases/download/v1.11.8/chamilo-1.11.8.zip>
After downloading the installation package, extract the contents of the zip file to the /var/www/html
directory with the following command:
sudo unzip chamilo-1.11.8.zip -d /var/www/html
This will extract the Chamilo files to a directory named chamilo-1.11.8
inside the /var/www/html
directory. Rename this directory to chamilo
by running the following command:
sudo mv /var/www/html/chamilo-1.11.8 /var/www/html/chamilo
With the Chamilo files extracted and renamed, change the ownership of the chamilo
directory to the apache
user by running the following command:
sudo chown -R apache:apache /var/www/html/chamilo
Next, open the Apache configuration file with your favorite text editor and add the following line to the end of the file:
IncludeOptional /var/www/html/chamilo/main/inc/conf/configuration.php
This will enable the Apache web server to read the configuration file for Chamilo. Save and close the file.
Now, restart the Apache web server to apply the changes:
sudo systemctl restart httpd
You can now access the Chamilo installation wizard by opening a web browser and navigating to http://your-server-ip/chamilo . Follow the on-screen instructions to complete the installation. After the installation is complete, you can log in to the Chamilo administration panel with the username and password you set during the installation process.