Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
  • News
  • Artificial Intelligence
  • Applications
  • Linux
No Result
View All Result
Cloudbooklet
No Result
View All Result
Home Google Cloud

Install ILIAS E-Learning LMS on Ubuntu – Google Cloud

by Cloudbooklet
4 years ago
in Google Cloud, Compute Engine
Install Ilias E-Learning Lms On Ubuntu Google Cloud
ShareTweetSendShare
Readers like you help support Cloudbooklet. When you make a purchase using links on our site, we may earn an affiliate commission.

Install ILIAS E-Learning LMS on Ubuntu 16.04 with Google Cloud Platform. This guide explains how to install and setup ILIAS Learning Management System on Google Cloud Platform with PHP 7.1, Apache and MySQL 5.7 ILIAS is a free open source powerful learning management solution for large businesses, universities, schools to create tailored, individual learning scenarios […]

ADVERTISEMENT

Install ILIAS E-Learning LMS on Ubuntu 16.04 with Google Cloud Platform. This guide explains how to install and setup ILIAS Learning Management System on Google Cloud Platform with PHP 7.1, Apache and MySQL 5.7

ILIAS is a free open source powerful learning management solution for large businesses, universities, schools to create tailored, individual learning scenarios very easily.

Prerequisites

  • A running Compute Engine, see the Setting up Compute Engine Instance with Ubuntu 16.04. Please choose Ubuntu 16.04 as Boot Disk.
  • Initial Ubuntu Server Set up.
  • For setting up Cloud DNS, see the Setting up Google Cloud DNS for your domain

System Requirements for ILIAS

You can choose 3.75 GB RAM for your Compute Engine Instance with Ubuntu 16.04. This tutorial is tested using this machine type with 50 GB Disk space.

ADVERTISEMENT

You can also install ILIAS on other Cloud Platforms with this same setup. Some are listed below.

You might also like

How To Setup Ssh Keys On Ubuntu

How to Setup SSH Keys on Ubuntu 20.04

4 months ago
Draggan Ai Editing Tool Install And Use Draggan Photo Editor

DragGAN AI Editing Tool Install and Use DragGAN Photo Editor

4 months ago

Once you have your Compute Engine Instance created and DNS is pointed to Google Cloud, you can proceed to start installing ILIAS.

Install Apache

Install Apache using the following command.

ADVERTISEMENT
sudo apt-get install apache2

Enable Firewall and Fail2Ban

Enable UFW for SSH port, HTTP port and HTTPS port.

sudo ufw allow OpenSSH
ufw allow 'Apache Full'

Now you can enable Firewall.

ADVERTISEMENT
sudo ufw enable

For additional securities you can install Fail2Ban

sudo apt-get install fail2ban

Start Fail2Ban

ADVERTISEMENT
sudo service fail2ban start

Install PHP 7.1

Now you can install PHP 7.1 and the required extensions.

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install libapache2-mod-php7.1 php7.1-gd php7.1-mysql php7.1-mbstring php-xml php7.1-xml

Once the installation is complete you can configure PHP ini settings for ILIAS.

ADVERTISEMENT
sudo nano  /etc/php/7.1/apache2/php.ini 

Modify the values to the ones below.

max_execution_time = 600
memory_limit = 512M
display_errors = Off
post_max_size = 256M
upload_max_filesize = 256M
max_input_vars = 10000
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 14400
session.hash_function = 0
session.save_handler = files
session.cookie_secure = On
allow_url_fopen = 1

Install MySQL and create Database for ILIAS

Now it’s time to create a database for ILIAS.

Install MySQL server

sudo apt-get install mysql-server

Setup a root password when prompted.

Login to MySQL and create a database for ILIAS.

mysql -u root -p

Enter your root password and execute the following commands to create a database and assign the user to the database.

CREATE DATABASE ilias_db CHARACTER SET utf8 COLLATE utf8_general_ci;
CREATE USER 'ilias_user'@'localhost' IDENTIFIED BY 'some_password';
GRANT ALL PRIVILEGES ON ilias_db.* TO 'ilias_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;

Remember the database name, username and password you just created.

Install other Dependencies

You need to install zip, unzip, imagemagick and Java

sudo apt-get install zip unzip imagemagick openjdk-8-jdk

Download ILIAS

Once Apache, PHP 7.1, MySQL and all other dependencies are installed you can download ILIAS into the webroot directory.

cd /var/www/html/
sudo git clone https://github.com/ILIAS-eLearning/ILIAS.git ilias
sudo chmod -R 755 ilias
sudo chown -R www-data:www-data ilias

Create a new directory outside of webspace and setup correct permissions for the data directory outside of webspace.

sudo mkdir /var/www/html/extras
sudo chmod -R 777 /var/www/html/extras 

You will need to add this path during the installation of ILIAS from your browser.

Now ILIAS is downloaded and permissions are setup.

Create V-Host Config for ILIAS

First you need to disable the default virtual host configuration.

sudo a2dissite 000-default

Create new configuration.

sudo nano /etc/apache2/sites-available/ilias.conf 

Paste the following in the file.

<VirtualHost *:80>
    ServerAdmin [email protected]
    ServerName yourdomainname.com
    ServerAlias www.yourdomainname.com

    DocumentRoot /var/www/html/ilias

    <Directory /var/www/html/ilias>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/ilias_error.log 
    CustomLog ${APACHE_LOG_DIR}/ilias_access.log combined 
</VirtualHost>

Hit Ctrl + X followed by Y and Enter to save the file.

Enable the configuration

sudo a2ensite ilias.conf

Enable Apache rewrite module

sudo a2enmod rewrite

Restart Apache.

sudo systemctl restart apache2

Setup Free SSL for ILIAS

Now you can install SSL to secure your website.

HTTPS is a protocol for secure communication between a server (instance) and a client (web browser). Due to the introduction of Let’s Encrypt, which provides free SSL certificates, HTTPS are adopted by everyone and also provides trust to your audiences.

sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install python-certbot-apache

Now we have installed Cert bot by Let’s Encrypt for Ubuntu 18.04, run this command to receive your certificates.

sudo certbot --apache -m [email protected] -d yourdomainname.com -d www.yourdomainname.com

Select all the domains you need to receive the certificate and hit Enter

The Cert bot client will automatically generate the new certificate for your domain.

Now you will be asked to create a redirection to https

Select the appropriate option and hit Enter

Install ILIAS

Now visit your domain name on your browser.

Follow the on screen instructions to install ILIAS.

For data directory outside the webspace you can enter the directory we have created (/var/www/html/extras ).

For MySQL Database type you can choose InnoDB Engine.

Install Ilias On Google Cloud

Get your Professional Google Cloud Architect certificate with this easy to learn course now.

Conclusion

In this guide you have learned how to install Apache, PHP 7.1, MySQL, ILIAS on Google Compute Engine.

Tags: Compute EngineGoogle Cloud Platform
ShareTweetSendShare
Cloudbooklet

Cloudbooklet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Related Posts

Set Up Deep Learning With Nvidia, Cuda, Cudnn On Ubuntu

How to Set Up Deep Learning with Nvidia, CUDA, cuDNN on Ubuntu 22.04

7 months ago
How To Install Or Upgrade Php 8.2 On Ubuntu 22.04

How to Install or Upgrade PHP 8.2 on Ubuntu 22.04

9 months ago
How To Change Timezone On Ubuntu 22.04

How to Change Timezone on Ubuntu 22.04

1 year ago
How To Install Ansible On Ubuntu 22.04

How to Install Ansible on Ubuntu 22.04

1 year ago

Follow Us

Trending Articles

Delete Netflix Account

How to Delete Netflix Account Permanently

September 21, 2023

How to Block YouTube Ads on Android TV in 2023 (6 Easy Methods)

10 Best AI Prompts for Writers to Improve Website SEO

5 Best TikTok Private Account Viewer in 2023

5 Best Fantasy Minecraft Servers in 2023

5 Best Laptop for Minecraft in 2023: Top Picks for All Budgets

Popular Articles

Ai Comic Generator

Best 10 AI Comic Generator: Create Comic book in Seconds

September 18, 2023

How to Install Waifu Diffusion – Step-by-Step Guide

Microsoft Unveils New Disc-Less Xbox Series X with Lift-to-Wake Controller

AI Statistics and Trends: What You Need to Know in 2023

7 Best AI Girl Generators for Creating Realistic and Beautiful AI Girls

Llama Code: How Meta AI LLM Can Help You Write Better Code

Subscribe Now

loader

Subscribe to our mailing list to receives daily updates!

Email Address*

Name

Cloudbooklet Logo

Welcome to our technology blog, where we explore the latest advancements in the field of artificial intelligence (AI) and how they are revolutionizing cloud computing. In this blog, we dive into the powerful capabilities of cloud platforms like Google Cloud Platform (GCP), Amazon Web Services (AWS), and Microsoft Azure, and how they are accelerating the adoption and deployment of AI solutions across various industries. Join us on this exciting journey as we explore the endless possibilities of AI and cloud computing.

  • About
  • Contact
  • Disclaimer
  • Privacy Policy

Cloudbooklet © 2023 All rights reserved.

No Result
View All Result
  • News
  • Artificial Intelligence
  • Applications
  • Linux

Cloudbooklet © 2023 All rights reserved.