How to install Gibbon in Ubuntu
To install Gibbon in Ubuntu
Gibbon is a free Educational Management system which is used to regulate the database for schools or college. It provides an easy web user interface. In this article we will learn how to install Gibbon in Ubuntu.
To Setup LAMP
To setup LAMP, just run the following command.
root@linuxhelp:~# apt-get install apache2 mysql-server mysql-client php5 libapache2-mod-php5 php5-mcrypt php5-mysql -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-bin apache2-data apache2-utils libaio1 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap libdbd-mysql-perl libdbi-perl libhtml-template-perl
liblua5.1-0 libmcrypt4 libmysqlclient18 libterm-readkey-perl mysql-client-5.6 mysql-client-core-5.6 mysql-common mysql-server-5.6 mysql-server-core-5.6 php5-cli
php5-common php5-json php5-readline
.
.
.
Creating config file /etc/php5/apache2/php.ini with new version
Module mpm_event disabled.
Enabling module mpm_prefork.
apache2_switch_mpm Switch to prefork
apache2_invoke: Enable module php5
Setting up php5 (5.6.11+dfsg-1ubuntu3.4) ...
Processing triggers for libc-bin (2.21-0ubuntu4) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for systemd (225-1ubuntu9) ...
After setting up LAMP, start and enable the services by using the following command.
root@linuxhelp:~# systemctl start apache2
root@linuxhelp:~# systemctl enable apache2
apache2.service is not a native service, redirecting to systemd-sysv-install
root@linuxhelp:~#systemctl start mysql
root@linuxhelp:~# systemctl enable mysql
Synchronizing state of mysql.service with SysV init with /lib/systemd/systemd-sysv-install...
Executing /lib/systemd/systemd-sysv-install enable mysql
Next create the database and database user for gibbon.
root@linuxhelp:~# mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with or g. Your MySQL connection id is 2 Server version: 5.6.31-0ubuntu0.15.10.1 (Ubuntu) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. mysql> create database gibbondb Query OK, 1 row affected (0.00 sec) mysql> CREATE USER ' gibbonuser' @' localhost' IDENTIFIED BY ' gibbon' Query OK, 0 rows affected (0.02 sec) mysql> GRANT ALL ON gibbondb.* TO ' gibbonuser' @' localhost' Query OK, 0 rows affected (0.00 sec) mysql> flush privileges Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
Move to the document root of your web server and download the package for gibbon as follows.
root@linuxhelp:~# cd /var/www/html
root@linuxhelp:/var/www/html# wget https://github.com/GibbonEdu/core/archive/v9.0.00.zip
--2016-08-06 12:35:37-- https://github.com/GibbonEdu/core/archive/v9.0.00.zip
Resolving github.com (github.com)... 192.30.253.112
Connecting to github.com (github.com)|192.30.253.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/GibbonEdu/core/zip/v9.0.00 [following]
--2016-08-06 12:35:38-- https://codeload.github.com/GibbonEdu/core/zip/v9.0.00
Resolving codeload.github.com (codeload.github.com)... 192.30.253.121
Connecting to codeload.github.com (codeload.github.com)|192.30.253.121|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13777454 (13M) [application/zip]
Saving to: ‘ v9.0.00.zip’
v9.0.00.zip 100%[==========================================================================================> ] 13.14M 120KB/s in 2m 53s
2016-08-06 12:38:32 (77.8 KB/s) - ‘ v9.0.00.zip’ saved [13777454/13777454]
Extract the downloaded file by using the following command.
root@linuxhelp:/var/www/html# ls index.html v9.0.00.zip root@linuxhelp:/var/www/html# unzip v9.0.00.zip Archive: v9.0.00.zip 32432064bc901b1cfc649db82064a01e48c55b9b creating: core-9.0.00/ extracting: core-9.0.00/.gitignore inflating: core-9.0.00/.htaccess inflating: core-9.0.00/CHANGEDB.php inflating: core-9.0.00/CHANGELOG.txt inflating: core-9.0.00/LICENSE inflating: core-9.0.00/README.md . . . extracting: core-9.0.00/themes/Default/img/trail.png inflating: core-9.0.00/themes/Default/img/upload.png inflating: core-9.0.00/themes/Default/img/upload_mini.png inflating: core-9.0.00/themes/Default/img/zoom.png creating: core-9.0.00/themes/Default/js/ inflating: core-9.0.00/themes/Default/js/common.js inflating: core-9.0.00/themes/Default/manifest.php inflating: core-9.0.00/version.php
Now rename the extracted directory as ‘ gibbon‘ .
root@linuxhelp:/var/www/html# ls core-9.0.00 index.html v9.0.00.zip root@linuxhelp:/var/www/html# mv core-9.0.00 gibbon
Assign the permission to the directory by running the following command.
root@linuxhelp:/var/www/html# chmod 777 gibbon/
Open the browser and navigate to http://localhost/gibbon to start the installation wizard.
Choose your preferred Language.
Enter the Database Information and click submit.
Then create a User Account.
Open the gibbon home page by hitting, Go to your gibbon home page.
Then add new user by clicking Home &rarr User Admin.
Click Add icon to add new users into it.
Enter the details of the user.
To add application form, click Application form in home tab.