{"id":494,"date":"2018-10-17T14:38:14","date_gmt":"2018-10-17T14:38:14","guid":{"rendered":"https:\/\/www.appservgrid.com\/paw92\/?p=494"},"modified":"2018-10-17T15:48:37","modified_gmt":"2018-10-17T15:48:37","slug":"howtoinstallchamiloondebian9","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/howtoinstallchamiloondebian9\/","title":{"rendered":"How to Install Chamilo on Debian 9"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2018\/09\/how-to-install-chamilo-on-debian-9.jpg\" alt=\"how to install chamilo on debian 9\" width=\"600\" height=\"300\" \/><\/p>\n<p>Chamilo is a free e-learning and collaboration software which aims to improve the access to education on a global level. In this tutorial, we will show you how to install Chamilo on a <a href=\"https:\/\/www.linuxcloudvps.com\/debian-cloud-vps.html\">Linux VPS running Debian 9<\/a> as an operating system.<\/p>\n<h3>Prerequisites<\/h3>\n<p>Before you start with the installation steps make sure your server meets the Chamilo requirements. Here is the list of Chamilo requirements:<\/p>\n<ul>\n<li>Apache 2.2+<\/li>\n<li>MySQL 5.6+ or MariaDB 5+<\/li>\n<li>PHP 5.5+<\/li>\n<\/ul>\n<p>Also, you need to have the following PHP modules installed and enabled:<\/p>\n<ul>\n<li>php-intl<\/li>\n<li>php-gd<\/li>\n<li>php-mbstring<\/li>\n<li>php-imagick<\/li>\n<li>php-curl<\/li>\n<li>php-mcrypt<\/li>\n<li>php-xml<\/li>\n<li>php-zip<\/li>\n<\/ul>\n<p>If some of the software required for Chamilo to work is not installed or enabled on the server you can follow the steps below to install it.<\/p>\n<h3>Install Apache, MySQL and PHP on a Debian 9 VPS<\/h3>\n<p>Our <a href=\"https:\/\/www.linuxcloudvps.com\/debian-cloud-vps.html\">Debian 9 VPS hosting<\/a> comes with Apache, MySQL and PHP pre-installed. To install all the software including the dependencies on your server, first you need to connect to your Linux VPS via SSH and then you can run the commands below:<\/p>\n<p>apt-get update<br \/>\napt-get install apache2 mysql-server php php-mysql php-intl php-gd php-mbstring php-imagick php-curl php-mcrypt php-opcache php-xml php-zip<\/p>\n<p>To verify the installation is completed run the following commands:<\/p>\n<p>apache2 -v<br \/>\n# Server version: Apache\/2.4.25 (Debian)<br \/>\n# Server built: 2018-06-02T08:01:13<\/p>\n<p>mysql -V<br \/>\n# mysql Ver 15.1 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2<\/p>\n<p>php -v<br \/>\n# PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )<br \/>\n# Copyright (c) 1997-2017 The PHP Group<br \/>\n# Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies<br \/>\n# with Zend OPcache v7.0.30-0+deb9u1, Copyright (c) 1999-2017, by Zend Technologies<\/p>\n<h3>Configure Apache for Chamilo on Debian 9<\/h3>\n<p>First of all, create an Apache virtual host for your new Chamilo website:<\/p>\n<p>nano \/etc\/apache2\/sites-available\/yourdomain.com.conf<\/p>\n<p>Add the following content:<\/p>\n<p>&lt;VirtualHost *:80&gt;<br \/>\nServerAdmin admin@yourdomain.com<br \/>\nDocumentRoot \/var\/www\/chamilo<br \/>\nServerName yourdomain.com<br \/>\nServerAlias www.yourdomain.com<br \/>\n&lt;Directory \/var\/www\/chamilo\/&gt;<br \/>\nOptions Indexes FollowSymLinks MultiViews<br \/>\nAllowOverride All<br \/>\nOrder allow,deny<br \/>\nallow from all<br \/>\n&lt;\/Directory&gt;<br \/>\nErrorLog \/var\/log\/apache2\/yourdomain.com-error_log<br \/>\nCustomLog \/var\/log\/apache2\/yourdomain.com-access_log common<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>Replace yourdomain.com with your actual domain name. Save and close the file. Then, enable the configuration and restart the Apache web server:<\/p>\n<p>a2ensite yourdomain.com<br \/>\nsystemctl restart apache2.service<\/p>\n<h3>Create MySQL database for Chamilo on Debian 9<\/h3>\n<p>Next, create a MySQL database for Chamilo. Log into your MySQL database server as root:<\/p>\n<p>mysql -u root -p<\/p>\n<p>Then, create a new database, a database user and set up a password using the commands below:<\/p>\n<p>mysql&gt; CREATE DATABASE chamilo;<br \/>\nmysql&gt; GRANT ALL PRIVILEGES ON chamilo.* TO &#8216;chamilo&#8217;@&#8217;localhost&#8217; IDENTIFIED BY &#8216;YoUrPaSsWoRd&#8217;;<br \/>\nmysql&gt; FLUSH PRIVILEGES;<br \/>\nmysql&gt; q<\/p>\n<p>Of course, you need to replace YoUrPaSsWoRd with a strong password of your choice.<\/p>\n<h3>Configure PHP for Chamilo on Debian 9<\/h3>\n<p>In order for Chamilo to work properly, you need to adjust some PHP settings. First, find the location of the php.ini file which is currently in use. Run the following command in your terminal:<\/p>\n<p>php &#8211;ini | grep &#8220;Loaded Configuration File&#8221;<\/p>\n<p>Then, edit the following settings as follows:<\/p>\n<p>max_execution_time = 300<br \/>\nmax_input_time = 300<br \/>\nmemory_limit = 128M<br \/>\npost_max_size = 64M<br \/>\nupload_max_filesize = 128M<br \/>\nmax_file_uploads = 20<\/p>\n<p>magic_quotes_gpc = Off<br \/>\nshort_open_tag = Off<br \/>\ndisplay_errors = Off<\/p>\n<p>Save the changes you have made in the php.ini and restart Apache again.<\/p>\n<p>systemctl restart apache2.service<\/p>\n<h3>Download and Install Chamilo on Debian 9<\/h3>\n<p>The next step is to download and install Chamilo on your Debian VPS. Download the latest version of Chamilo from the <a href=\"https:\/\/chamilo.org\/en\/download\/\" target=\"_blank\" rel=\"noopener\">official Chamilo download page<\/a>. At the moment of writing, the latest version is 1.11.8 which works well with PHP 7.0.x or later.<\/p>\n<p>cd \/var\/www<br \/>\nwget https:\/\/github.com\/chamilo\/chamilo-lms\/releases\/download\/v1.11.8\/chamilo-1.11.8-php7.zip<\/p>\n<p>Extract the zip archive you have just downloaded:<\/p>\n<p>unzip chamilo-1.11.8-php7.zip<\/p>\n<p>While you are in \/var\/www, rename the Chamilo directory, change the ownership of the files and remove the zip archive:<\/p>\n<p>mv chamilo-1.11.8-php7 chamilo<br \/>\nchown -R www-data: chamilo\/<br \/>\nrm -f chamilo-1.11.8-php7.zip<\/p>\n<p>Now, open your favorite web browser and enter your domain in the search bar. You should see the Chamilo installation wizard which looks like the one on the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2018\/09\/installing-chamilo-on-debian-9.jpg\" alt=\"installing chamilo on debian 9\" width=\"500\" height=\"331\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Follow the installation process to complete the setup. It is OK to accept all default values. You should also consider changing the admin password so you can easily remember it. Once you are done with the installation of Chamilo on your server, you can refer to the <a href=\"https:\/\/11.chamilo.org\/documentation\/index.html\" target=\"_blank\" rel=\"noopener\">official Chamilo documentation<\/a> for more instructions on how to use and customize the software.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linuxcloudvps.com\/blog\/wp-content\/uploads\/2018\/09\/install-chamilo-on-debian-9.jpg\" alt=\"install chamilo on debian 9\" width=\"167\" height=\"45\" \/><\/p>\n<p>Of course, you don\u2019t have to install Chamilo on Debian 9, if you use one of our <a href=\"https:\/\/www.linuxcloudvps.com\/cloud-vps.html\">Debian Cloud VPS<\/a> Hosting services, in which case you can simply ask our expert Linux admins to install Chamilo on Debian 9 for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p>PS. If you liked this post on how to install Chamilo on Debian 9, please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n<p>Be the first to write a comment.<\/p>\n<p><a href=\"https:\/\/www.linuxcloudvps.com\/blog\/how-to-install-chamilo-on-debian-9\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chamilo is a free e-learning and collaboration software which aims to improve the access to education on a global level. In this tutorial, we will show you how to install Chamilo on a Linux VPS running Debian 9 as an operating system. Prerequisites Before you start with the installation steps make sure your server meets &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2018\/10\/17\/howtoinstallchamiloondebian9\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to Install Chamilo on Debian 9&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-494","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/494","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=494"}],"version-history":[{"count":4,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions"}],"predecessor-version":[{"id":534,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/494\/revisions\/534"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}