DokeOS: instalasi
Revision as of 07:58, 25 April 2012 by Onnowpurbo (talk | contribs)
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/
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).