Difference between revisions of "DokeOS: instalasi"

From OnnoWiki
Jump to navigation Jump to search
(New page: 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 ...)
 
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
1. Pre-requisites
+
Instalasi Aplikasi Pendukung
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).
+
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
  
All these software are open source and freely available.
+
Agar dokeos dapat bekerja dengan baik, edit php.ini
  
To run Dokeos LMS on your server, you need to install WAMP, LAMP or MAMP:
+
vi /etc/php5/apache2/php.ini
  
    To install WAMP (AMP on Windows), we recommend the XAMPP .exe installer
+
Menjadi
    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
 
  
 +
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
  
MySQL database server
+
Pastikan,
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.
 
2. Installation of Dokeos LMS
 
  
    Download Dokeos LMS
+
short_open_tag = On
    Unzip it
+
safe_mode = Off
    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
+
magic_quotes_gpc = On
    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
+
magic_quotes_runtime = Off
    Follow the web installation process. You can accept all default values. Consider changing the admin password to remember it.
 
  
 +
Restart Apache
  
The following directories need to be readable, writeable and executable for everyone:
+
/etc/init.d/apache2 restart
  
    dokeos/main/inc/conf/
+
Buat database untuk dokeos
    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)
+
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
  
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).
+
Pengalaman selama ini, dokeos akan lebih aman diakses menggunakan root.
  
2.5. The following files need to be readable and writeable for the web browser, only during the installation process:
+
Copy dan Instalasi dokeos ke folder [[web]]
  
    dokeos/main/inc/conf/configuration.php (if present)
+
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
  
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).
+
Buat folder berikut agar menjadi read, write and executable untuk semua:
  
NOTES:
+
chmod -Rf 777 /var/www/dokeos/main/install/
Do not modify the home_*.html files directly. Instead, choose "Configure the homepage" in the Dokeos administration section.
+
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/
  
Windows : with combination packages like XAMPP, out of the box, login and password for MySQL should probably remain empty.
+
Set agar fil konfigurasi hanya read & write oleh web browser
  
Configuration and security after installation
+
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
  
    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.
+
Untuk keamanan, setelah setelah konfigurasi kita perlu menset agar file konfigurasi hanya bisa di read saja
    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.
 
  
 +
chmod -Rf 444 /var/www/dokeos/main/inc/conf/configuration.php
 +
chmod -Rf 444 /var/www/dokeos/main/install/index.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
+
Masuk ke Web, misalnya
    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
+
http://10.150.5.247/dokeos/
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:
+
[[Image:Dokeos1.png|center|200px|thumb]]
 +
[[Image:Dokeos2.png|center|200px|thumb]]
 +
[[Image:Dokeos3.png|center|200px|thumb]]
 +
[[Image:Dokeos4.png|center|200px|thumb]]
 +
[[Image:Dokeos5.png|center|200px|thumb]]
 +
[[Image:Dokeos6.png|center|200px|thumb]]
 +
[[Image:Dokeos7.png|center|200px|thumb]]
 +
[[Image:Dokeos8.png|center|200px|thumb]]
 +
[[Image:Dokeos9.png|center|200px|thumb]]
  
    short_open_tag = On
+
==Referensi==
    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.
+
* http://www.dokeos.com/en/deployment/free
 +
* http://www.dokeos.com/en/documentation.php
 +
* http://www.dokeos.com/en/node/31
  
BSD users: these php libraries have to be included during php installation:
+
==Pranala Menarik==
  
    php-mysql The mysql shared extension for php
+
* [[Dokeos]]
    php-pcre The pcre shared extension for php
+
* [[DokeOS: instalasi]]
    php-session The session shared extension for php
+
* [[DokeOS: Penggunaan]]
    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
 

Latest revision as of 08:02, 25 April 2012

Instalasi Aplikasi Pendukung

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

Agar dokeos dapat bekerja dengan baik, edit php.ini

vi /etc/php5/apache2/php.ini

Menjadi

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

Pastikan,

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

Restart Apache

/etc/init.d/apache2 restart

Buat database untuk dokeos

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

Pengalaman selama ini, dokeos akan lebih aman diakses menggunakan root.

Copy dan Instalasi dokeos ke folder web

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

Buat folder berikut agar menjadi read, write and executable untuk semua:

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/

Set agar fil konfigurasi hanya read & write oleh web browser

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

Untuk keamanan, setelah setelah konfigurasi kita perlu menset agar file konfigurasi hanya bisa di read saja

chmod -Rf 444 /var/www/dokeos/main/inc/conf/configuration.php
chmod -Rf 444 /var/www/dokeos/main/install/index.php


Masuk ke Web, misalnya

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

Referensi

Pranala Menarik