How to Install Gibbon on Fedora CoreOS Latest
This tutorial will guide you on how to install Gibbon, an open-source education management system, on your Fedora CoreOS Latest.
Prerequisites
Before you proceed with the installation, make sure you have the following:
- An up-to-date Fedora CoreOS Latest server
- A sudo user with root privileges
- A stable internet connection
Step 1: Install Required Packages
First, log in to your Fedora CoreOS server with your sudo user account.
Before installing any package, it's always a good practice to update your system. Run the following command to update your system and upgrade the available packages:
sudo dnf update -yAfter updating your system, we need to install some required packages to proceed with Gibbon installation. Use the below command to install the required packages.
sudo dnf install -y httpd httpd-mod_ssl mariadb-server mariadb php php-common php-mysqli php-gd php-intl php-mbstring php-xmlrpc php-xml php-zip php-imap php-ldap php-curl wget unzip
Step 2: Download and Extract Gibbon
Open your web browser and go to the Gibbon download page: https://gibbonedu.org/download/
Scroll down until you find the latest release version and click on the "Download" button to download Gibbon's latest version.
After the download is complete, navigate to the directory where you downloaded the file and extract it to the /var/www/html/ directory:
cd ~/Downloads/ sudo unzip Gibbon-x.x.x.zip -d /var/www/html/Replace "x.x.x" with the version number you have downloaded.
Change the ownership of the Gibbon files and directories to the Apache web user:
sudo chown -R apache:apache /var/www/html/Gibbon/Change the directory to the Gibbon installation directory:
cd /var/www/html/Gibbon/Generate the Gibbon configuration file:
sudo cp config.dist.php config.phpTo enable the write mode, we need to give write permission to the cache/ directory:
sudo chmod -R 777 cache/
Step 3: Configure MariaDB
Start the MariaDB service and enable it to start automatically at the boot time:
sudo systemctl start mariadb sudo systemctl enable mariadbRun the security script to secure your MariaDB installation:
sudo mysql_secure_installationThe script will prompt you to set your root password, remove anonymous users, disallow root login remotely, and remove the test database.
Create a new database for Gibbon:
sudo mysql -u root -pYou will be prompted to enter your MariaDB root password.
Once you are in the MariaDB shell, run the following command to create a new database:
MariaDB [(none)]> CREATE DATABASE gibbondb;You can replace "gibbondb" with any other name you like.
Create a new user and grant all privileges to the newly created database:
MariaDB [(none)]> GRANT ALL PRIVILEGES ON gibbondb.* TO 'gibbonuser'@'localhost' IDENTIFIED BY 'yourpassword';Replace "gibbonuser" and "yourpassword" with your preferred username and password.
Flush the privileges and exit the MariaDB shell:
MariaDB [(none)]> FLUSH PRIVILEGES; MariaDB [(none)]> exit;
Step 4: Configure Apache for Gibbon
Open the Apache configuration file in your favorite editor:
sudo nano /etc/httpd/conf/httpd.confFind the below section and change the value to "AllowOverride All":
<Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory>It should look like below:
<Directory "/var/www/html"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>Save and close the file.
Restart the Apache service:
sudo systemctl restart httpd
Step 5: Access Gibbon
Open your web browser and enter the following URL in the address bar:
https://your-server-ip/Gibbon/Replace "your-server-ip" with your server IP address or domain name.
You should see the Gibbon setup wizard page. Follow the on-screen instructions to complete the installation.
Congratulations! You have successfully installed Gibbon on your Fedora CoreOS Latest server.