DokeOS: instalasi

From OnnoWiki
Revision as of 11:12, 23 April 2012 by Silfianaelfa (talk | contribs)
Jump to navigation Jump to search

1. Pre-requisites

Dokeos can be installed on Windows, Linux, Mac OS X and UNIX servers indifferently. However, we recommend the use of Linux server for optimal flexibility, remote control and scalability.

Dokeos is mainly a LMS running Apache 1.3, 2.0, MySQL 5.1 and PHP 5.1 (the so called AMP trilogy).

All these software are open source and freely available.

To run Dokeos LMS on your server, you need to install WAMP, LAMP or MAMP:

   To install WAMP (AMP on Windows), we recommend the XAMPP .exe installer
   To install LAMP (AMP on Linux), use the Package manager of your favourite distribution (Synaptic, RPMFinder etc.). For instance, on a Ubuntu server, use Shell or Synaptic following the Ubuntuguide on Apache and the following sections
   To install MAMP (AMP on Mac OS X), refer to the MAMP dedicated website
apt-get update
apt-get install apache2 mysql-server libmysqlclient15-dev libphp-adodb \
libgd2-xpm  libgd2-xpm-dev php5-mysql php5-gd php5-curl \
php-pear unzip

MySQL database server You will need a login and password allowing to administrate and create at least one database. By default, Dokeos will create a new database for each course created. It means your host should allow you to create and administrate several databases. You can also install Dokeos using only one database, in that case you have to select this option during the installation.


mysql -u root -ppassword

create database dokeos;
grant ALL on root.* to dokeos@localhost;
grant ALL on dokeos.* to dokeos@localhost identified by 'dokeos';
grant ALL on dokeos.* to dokeos identified by 'dokeos';
exit




2. Installation of Dokeos LMS

   Download Dokeos LMS
cd ~/Downloads
wget http://www.dokeosnet.com/download/dokeos-2.1.1.zip
cp dokeos-2.1.1.zip /var/www/
cd /var/www/
unzip dokeos-2.1.1.zip
mv dokeos-2.1.1 dokeos
   Unzip it
   Copy the dokeos directory in your Apache web directory. This can be C:\xampp\htdocs\ on a Windows server or /var/www/html/ on a Linux server
   Open your web browser (Internet Explorer, Firefox...) and type http://localhost/dokeos/ if you install locally or http://www.domain.com/dokeos/ if you install remotely
   Follow the web installation process. You can accept all default values. Consider changing the admin password to remember it. 

The following directories need to be readable, writeable and executable for everyone:


chmod -Rf 777 /var/www/dokeos/main/install/
chmod -Rf 777 /var/www/dokeos/main/upload/template_thumbnails/
chmod -Rf 777 /var/www/dokeos/main/inc/conf/
chmod -Rf 777 /var/www/dokeos/main/upload/users/
chmod -Rf 777 /var/www/dokeos/main/default_course_document/
chmod -Rf 777 /var/www/dokeos/archive/
chmod -Rf 777 /var/www/dokeos/courses/
chmod -Rf 777 /var/www/dokeos/home/

(where 'dokeos' is the directory in which you installed Dokeos)

On Linux, Mac OS X and BSD operating systems you can use the CHMOD 777 command for this (although we recommend you seek advice from an experienced system administrator). In Windows, you may need to check the properties of the folders (by right-clicking on them).

2.5. The following files need to be readable and writeable for the web browser, only during the installation process:

chmod -Rf 666 /var/www/dokeos/main/inc/conf/configuration.php
chown -Rf www-data.www-data /var/www/dokeos/main/inc/conf/configuration.php

On Linux, Mac OS X and BSD operating systems you can use the CHMOD 666 command for this (although we recommend you seek advice from an experienced system administrator). In Windows, you may need to check the properties of the files and folders (by right-clicking on them).

NOTES: Do not modify the home_*.html files directly. Instead, choose "Configure the homepage" in the Dokeos administration section.

Windows : with combination packages like XAMPP, out of the box, login and password for MySQL should probably remain empty.

Configuration and security after installation

   Protect your configuration file: make sure no one can overwrite it. You can find the config file in (dokeos folder)/main/inc/conf/configuration.php. Make it read-only (windows/xwindows: right-click the file to edit the properties. linux/bsd/macosx: use the chmod 444 command). The config file is created by Apache so you may need to be root user to change its permissions.
   Protect your installation folder: if the (dokeos folder)/main/install folder is still accessible, someone could install over your existing version (you could lose your data that way). Move the folder somewhere out of the web directories so it is not accessible, change its name, or edit its properties so no one can read or execute it.
   For better security: making the files world-writable will help you install, and solves many issues for people without much admin experience. However, it's better security to make the owner of the apache process (often called apache or www-data) also owner of all the dokeos files and folders. Ths way, these files need only be readable and writable by the Apache process owner, not by the entire world.
   Configure your Dokeos installation: in the administration section of Dokeos, you can use the Dokeos Config Settings to adjust the behavior of your installation.
   Configure Dokeos mail: most of Dokeos uses the mail settings from the php.ini file. However, the announcements tool uses phpMailer (another free software project) and the settings for this tool can be adjusted in (dokeos folder)/main/inc/conf/mail.conf.php.


PHP configuration To get the best of Dokeos, you need to finetune PHP settings. Consider :

   Editing php.ini file (on windows can be located at C:\xampp\php\php.ini, on Ubuntu Linux :
vi /etc/php5/apache2/php.ini

search the word "max" and increase values to optimise the server

   you may want to end up with the following values :
max_execution_time = 300    ; Maximum execution time of each script, in seconds
max_input_time = 600 ; Maximum amount of time each script may spend parsing request data
memory_limit = 256M      ; Maximum amount of memory a script may consume (128MB)
post_max_size = 64M
upload_max_filesize = 100M

Some users could meet problems if their PHP settings don't fit these ones:

short_open_tag = On
safe_mode = Off
magic_quotes_gpc = On
magic_quotes_runtime = Off

Restart Apache

/etc/init.d/apache2 restart


Masuk ke Web

http://10.150.5.247/dokeos/
Dokeos1.png
Dokeos2.png
Dokeos3.png
Dokeos4.png
Dokeos5.png
Dokeos6.png
Dokeos7.png
Dokeos8.png
Dokeos9.png



Security advice: To protect your site, make main/inc/conf/configuration.php and main/install/index.php (but not their directories) read-only (CHMOD 444).