DokeOS: instalasi
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
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
wget http://www.dokeosnet.com/download/dokeos-2.1.1.zip mkdir /var/www/gapinkpoll cp dokeos-2.1.1.zip /var/www/gapinkpoll cd /var/www/gapinkpoll unzip dokeos-2.1.1.zip
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.
mkdir /var/www/gapinkpoll cp
The following directories need to be readable, writeable and executable for everyone:
dokeos/main/inc/conf/ dokeos/main/upload/users/ dokeos/main/default_course_document/ dokeos/archive/ dokeos/courses/ 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:
dokeos/main/inc/conf/configuration.php (if present)
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 : /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
Past Dokeos versions required register_globals to be set to On. This is no longer necessary, this can be set to Off and Dokeos will work fine.
BSD users: these php libraries have to be included during php installation:
php-mysql The mysql shared extension for php php-pcre The pcre shared extension for php php-session The session shared extension for php php-zlib The zlib shared extension for php (optional) php-ldap if you want to be able to use LDAP authentication
You might also add the following php modules and packages:
php-ctype php-gd php-iconv php-json php-mbstring