Gibbon是一个免费的开源网络教育管理系统,可用于解决教师和学生日常问题。 Gibbon是非常灵活,可扩展和可应用的应用程序,具有许多功能,包括在线申请表,信使,计划员,外部评估等等。 Gibbon帮助教师轻松了解每个学生在每个学科中的起伏,并以一切可能的方式帮助学生。 Gibbon有许多模块用于扩展不同类型的学校通常需要的功能。 您可以根据您的要求轻松打开或关闭每个模块。
在本教程中,我们将在Ubuntu 16.04服务器上逐步安装Gibbon。
要求您的服务器已经安装Ubuntu 16.04系统。
您的服务器上的静态IP地址设置为192.168.15.189
您的服务器上具有sudo用户设置的非root用户。
更新基本系统在安装Gibbon之前,建议使用最新的稳定版本来更新系统。 您可以通过运行以下命令来执行此操作:
sudo apt-get update -y
sudo apt-get upgrade -y
一旦您的系统更新,请重新启动系统并使用sudo用户登录。
安装 Apache Web ServerApache Web服务器需要安装Gibbon。 您可以通过运行以下命令轻松安装Apache和其他必需的库:
sudo apt-get install apache2 apache2-bin libapache2-mod-php7.0 -y
安装Apache Web服务器后,启动Apache服务,并使用以下命令启动使它在启动时启动:
sudo systemctl start apache2
sudo systemctl enable apache2
完成后,您可以继续安装PHP。
安装 PHPGibbon还需要PHP和其他PHP库。 您可以通过运行以下命令来安装它们:
sudo apt-get install php7.0 php7.0-mcrypt php7.0-curl php7.0-gd php7.0-json php7.0-mysql php7.0-xml php7.0-zip -y
安装PHP后,您将需要调整PHP设置。 您可以通过编辑php.ini文件来执行此操作:
sudo nano /etc/php/7.0/cli/php.ini
进行以下更改:
file_uploads = On allow_url_fopen = On dispaly_errors = Off error_reporting = E_ALL & ~E_NOTICE register_globals = off magic_quotes_gpc = Off set max_input_vars = 4000完成后保存并关闭文件。
安装并配置MariaDB接下来,MariaDB需要存储Gibbon的数据库。 您可以通过运行以下命令来安装它:
sudo apt-get install mariadb-server mariadb-client -y
安装MariaDB之后,您需要先确保安全。 您可以通过运行以下命令来保护它:
sudo mysql_secure_installation
回答以下所有问题:
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the current password for the root user. If you've just installed MariaDB, and you haven't set the root password yet, the password will be blank, so you should just press enter here. Enter current password for root (enter for none): OK, successfully used password, moving on... Setting the root password ensures that nobody can log into the MariaDB root user without the proper authorisation. You already have a root password set, so you can safely answer 'n'. Change the root password? [Y/n] n ... skipping. By default, a MariaDB installation has an anonymous user, allowing anyone to log into MariaDB without having to have a user account created for them. This is intended only for testing, and to make the installation go a bit smoother. You should remove them before moving into a production environment. Remove anonymous users? [Y/n] Y ... Success! Normally, root should only be allowed to connect from 'localhost'. This ensures that someone cannot guess at the root password from the network. Disallow root login remotely? [Y/n] Y ... Success! By default, MariaDB comes with a database named 'test' that anyone can access. This is also intended only for testing, and should be removed before moving into a production environment. Remove test database and access to it? [Y/n] Y - Dropping test database... ... Success! - Removing privileges on test database... ... Success! Reloading the privilege tables will ensure that all changes made so far will take effect immediately. Reload privilege tables now? [Y/n] Y ... Success! Cleaning up... All done! If you've completed all of the above steps, your MariaDB installation should now be secure. Thanks for using MariaDB!安装MariaDB后,使用以下命令登录到MariaDB控制台:
mysql -u root -p
输入您的root密码并使用以下命令为Gibbon创建数据库:
MariaDB [(none)]>CREATE DATABASE gibbon_db;
为Gibbon创建数据库后,使用以下命令创建用户名和密码:
MariaDB [(none)]>CREATE USER 'gibbon'@'localhost' IDENTIFIED BY 'password';
接下来,使用以下命令向Gibbon数据库授予权限:
MariaDB [(none)]>GRANT ALL PRIVILEGES ON gibbon_db.* TO 'gibbon'@'localhost';
接下来,运行FLUSH PRIVILEGES命令,以使权限表由MariaDB重新加载,我们可以使用新的证书:
MariaDB [(none)]>FLUSH PRIVILEGES;
最后,使用以下命令退出MariaDB控制台:
MariaDB [(none)]>\q
开始安装 Gibbon您可以从他们的官方网站下载最新版本的Gibbon。 运行以下命令下载它:
wget https://github.com/GibbonEdu/core/archive/v14.0.00.zip
下载Gibbon后,使用以下命令解压缩下载的文件:
unzip v14.0.00.zip
接下来,将提取的目录移动到Apache Web根目录:
sudo mv core-14.0.00 /var/www/html/gibbon
接下来,您将需要更改gibbon目录的所有权,并给予必要的权限:
sudo chown -R www-data:www-data /var/www/html/gibbon
sudo chmod -R 777 /var/www/html/gibbon
接下来,您将需要为Gibbon创建一个Apache虚拟主机文件。 您可以通过在 /etc/apache2/sites-available/ 目录中创建gibbon.conf文件:
sudo nano /etc/apache2/sites-available/gibbon.conf