How to Install Gibbon on Arch Linux

Gibbon is a web-based educational management system that allows administrators, teachers, and students to manage their academic activities from a single platform. In this tutorial, we will show you how to install Gibbon on Arch Linux.

Prerequisites

In order to install Gibbon on Arch Linux, you need to have the following prerequisites:

Step 1: Install Dependencies

The first step is to install the necessary dependencies for Gibbon to function. To do this, open the terminal and run the following command:

sudo pacman -S git php php-apache mariadb

Step 2: Configure Apache and PHP

Next, we need to configure Apache and PHP for Gibbon. Open the Apache configuration file at /etc/httpd/conf/httpd.conf using your favorite text editor and add the following lines to the end of the file:

LoadModule php7_module modules/libphp7.so 
AddHandler php7-script php
Include conf/extra/php7_module.conf

Save the file and exit the editor.

Then, open the PHP configuration file at /etc/php/php.ini and make the following changes:

display_errors = Off 
error_reporting = E_ALL & ~E_NOTICE
date.timezone = Asia/Kolkata

Save the file and exit the editor.

Step 3: Install and Configure Gibbon

Now, we need to download and configure Gibbon. To do this, follow the below steps:

  1. Clone the Gibbon repository to your server by running the following command:

    sudo git clone https://github.com/GibbonEdu/core.git /var/www/html/gibbon
    
  2. Change the ownership of the Gibbon directory to the Apache user:

    sudo chown -R http:http /var/www/html/gibbon
    
  3. Create a new MySQL/MariaDB database for Gibbon:

    sudo mysql -u root -p -e "CREATE DATABASE gibbon;"
    sudo mysql -u root -p -e "GRANT ALL ON gibbon.* TO 'gibbon'@'localhost' IDENTIFIED BY 'gibbon_password';"
    

    Replace gibbon and gibbon_password with your preferred database and user credentials.

  4. Import the Gibbon database schema:

    sudo mysql -u gibbon -p gibbon < /var/www/html/gibbon/schema/gibbon.sql
    
  5. Rename the config-dist.php file to config.php:

    cd /var/www/html/gibbon
    sudo mv config-dist.php config.php
    
  6. Edit the config.php file and make the following changes:

    define('IS_DEV', false);
    define('DB_HOST', 'localhost');
    define('DB_NAME', 'gibbon');
    define('DB_USER', 'gibbon');
    define('DB_PASSWORD', 'gibbon_password');
    define('URL', 'http://localhost/gibbon');
    

    Replace gibbon, gibbon_password, and http://localhost/gibbon with your own database and URL details.

  7. Restart the Apache service:

    sudo systemctl restart httpd
    

Step 4: Access Gibbon

Finally, open your favorite web browser and visit the URL http://localhost/gibbon to access the Gibbon web interface. Follow the on-screen instructions to set up your organization and start using Gibbon.

Congratulations! You have successfully installed and configured Gibbon on Arch Linux.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!