DokeOS: instalasi

From OnnoWiki
Revision as of 06:37, 25 April 2012 by Onnowpurbo (talk | contribs)
Jump to navigation Jump to search

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

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.

Instalai dokeos

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).