DokeOS: instalasi: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
No edit summary
Onnowpurbo (talk | contribs)
No edit summary
 
(3 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.
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


Dokeos is mainly a LMS running Apache 1.3, 2.0, MySQL 5.1 and PHP 5.1 (the so called AMP trilogy).
Agar dokeos dapat bekerja dengan baik, edit php.ini


All these software are open source and freely available.
vi /etc/php5/apache2/php.ini


To run Dokeos LMS on your server, you need to install WAMP, LAMP or MAMP:
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


    To install WAMP (AMP on Windows), we recommend the XAMPP .exe installer
Pastikan,
    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
  short_open_tag = On
  apt-get install apache2 mysql-server libmysqlclient15-dev libphp-adodb \
  safe_mode = Off
  libgd2-xpm  libgd2-xpm-dev php5-mysql php5-gd php5-curl \
  magic_quotes_gpc = On
  php-pear unzip
  magic_quotes_runtime = Off


MySQL database server
Restart Apache
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.


/etc/init.d/apache2 restart
Buat database untuk dokeos


  mysql -u root -ppassword
  mysql -u root -ppassword
   
   
  create database dokeos;
  create database dokeos;
  grant all on root.* to dokeos@localhost;
  grant ALL on root.* to dokeos@localhost;
  grant all on dokeos.* to dokeos@localhost identified by 'dokeos';
  grant ALL on dokeos.* to dokeos@localhost identified by 'dokeos';
  grant all on dokeos.* to dokeos identified by 'dokeos';
  grant ALL on dokeos.* to dokeos identified by 'dokeos';
  exit
  exit


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


 
Copy dan Instalasi dokeos ke folder [[web]]
 
 
 
2. Installation of Dokeos LMS
 
    Download Dokeos LMS


  cd ~/Downloads
  cd ~/Downloads
Line 46: Line 50:
  mv dokeos-2.1.1 dokeos
  mv dokeos-2.1.1 dokeos


    Unzip it
Buat folder berikut agar menjadi read, write and executable untuk semua:
    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/inc/conf/
  chmod -Rf 777 /var/www/dokeos/main/upload/users/
  chmod -Rf 777 /var/www/dokeos/main/upload/users/
Line 60: Line 61:
  chmod -Rf 777 /var/www/dokeos/home/
  chmod -Rf 777 /var/www/dokeos/home/


(where 'dokeos' is the directory in which you installed Dokeos)
Set agar fil konfigurasi hanya read & write oleh web browser
 
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
  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
  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).
Untuk keamanan, setelah setelah konfigurasi kita perlu menset agar file konfigurasi hanya bisa di read saja
 
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 :
chmod -Rf 444 /var/www/dokeos/main/inc/conf/configuration.php
chmod -Rf 444 /var/www/dokeos/main/install/index.php


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
Masuk ke Web, misalnya
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


http://10.150.5.247/dokeos/


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.
[[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]]


BSD users: these php libraries have to be included during php installation:
==Referensi==


    php-mysql The mysql shared extension for php
* http://www.dokeos.com/en/deployment/free
    php-pcre The pcre shared extension for php
* http://www.dokeos.com/en/documentation.php
    php-session The session shared extension for php
* http://www.dokeos.com/en/node/31
    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:
==Pranala Menarik==


    php-ctype
* [[Dokeos]]
    php-gd
* [[DokeOS: instalasi]]
    php-iconv
* [[DokeOS: Penggunaan]]
    php-json
    php-mbstring

Latest revision as of 01: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/

Referensi

Pranala Menarik