For those of you who didn’t know, Gibbon is an open source, free and highly flexible education management system. It helps teachers and students to address and solve daily problems. Gibbon is a flexible application with many features, such as planner, external assessment, online application forms, messenger etc. The administration department of the educational institutes can use this tool to complete their administrative responsibilities.
This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple. I will show you through the step by step installation Gibbon on CentOS 6.
Step 1. First of all make sure that all packages are up to date.
yum -y update
Step 2. Install LAMP server and include some php extension.
yum install mysql-server httpd php php-mysql
yum install php-mbstring php-curl php-openssl php-zip php-gd php-dom php-xml php-intl php-json
Start Apache and MySQL services:
service httpd start
service mysqld start
Step 3. Configuring MySQL.
By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MySQL.
Next we will need to log in to the MySQL console and create a database for the Moodle. Run the following command:
mysql -u root -p
This will prompt you for a password, so enter your MySQL root password and hit Enter. Once you are logged in to your database server you need to create a database for Gibbon installation:
mysql> CREATE DATABASE gibbondb;
mysql> GRANT ALL PRIVILEGES ON gibbondb.* TO 'gibbon'@'localhost' IDENTIFIED BY 'your-password' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
Edit the ‘php.ini’ configuration file and add/modify the following lines in it:
### nano /etc/php.ini
file_uploads = On
allow_url_fopen = On
register_globals = off
magic_quotes_gpc = Off
set max_input_vars = 5000
dispaly_errors = Off
error_reporting = E_ALL & ~E_NOTICE
Step 4. Configure Apache web server.
Create a new virtual host directive in Apache:
### nano /etc/httpd/conf/httpd.conf
CustomLog /var/log/apache2/your-domain.com-access_log common
chown apache:apache -R /var/www/html/gibbon
Restart the Apache web server for the changes to take effect:
service httpd restart
Step 5. Install Gibbon.
Download the latest stable version of Gibbon:
mv core-9.1.00 /var/www/html/gibbon
Step 6. Accessing Gibbon.
Gibbon will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/gibbon or http://server-ip/gibbon. Follow the easy instructions: enter the system language, database information, create a new administrator account, enter server settings, organisation settings and click ‘submit’ once you have filled out all of the fields.That is it. The Gibbon installation is now complete. If you are using a firewall, please open port 80 to enable access to the control panel.
Congratulation’s! You have successfully installed Gibbon. Thanks for using this tutorial for installing Gibbon college management on CentOS 6 system.