Difference between revisions of "Instalasi Moodle"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 14: | Line 14: | ||
service apache2 stop | service apache2 stop | ||
service apache2 start | service apache2 start | ||
+ | service apache2 restart | ||
− | + | Atau Apache | |
− | |||
− | |||
/etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Setup Database== | ==Setup Database== | ||
Line 39: | Line 30: | ||
Setup database operasonal dengan username & password akses | Setup database operasonal dengan username & password akses | ||
− | |||
# mysql -u root -p | # mysql -u root -p | ||
Line 81: | Line 71: | ||
chown -Rf www-data.www-data /var/moodledata/lang/ | chown -Rf www-data.www-data /var/moodledata/lang/ | ||
− | + | ==Install Moodle== | |
+ | |||
+ | Download | ||
cd /usr/local/src | cd /usr/local/src | ||
wget https://download.moodle.org/download.php/direct/stable31/moodle-latest-31.tgz | wget https://download.moodle.org/download.php/direct/stable31/moodle-latest-31.tgz | ||
− | + | Install | |
− | |||
− | |||
cp moodle-latest-31.tgz /var/www/html/ | cp moodle-latest-31.tgz /var/www/html/ | ||
Line 97: | Line 87: | ||
chown -Rf www-data.www-data /var/www/html/moodle | chown -Rf www-data.www-data /var/www/html/moodle | ||
− | Lanjutkan | + | Lanjutkan dengan konfigurasi via web |
− | |||
http://localhost/moodle | http://localhost/moodle | ||
+ | http://ip-address/moodle | ||
+ | |||
+ | |||
+ | Language -> id -> Selanjutnya | ||
+ | Confirm paths -> Selanjutnya | ||
+ | Type -> MySQL -> Selanjutnya | ||
+ | Database settings | ||
+ | Improved MySQL (native/mysqli) | ||
+ | Database host localhost | ||
+ | Database name moodle | ||
+ | Database user moodle | ||
+ | Database password moodle | ||
+ | Tables prefix mdl_ | ||
+ | '''unix socket (check)''' -> Selanjutnya | ||
+ | |||
+ | Installation -> Selanjutnya | ||
+ | Server checks -> Selanjutnya | ||
+ | |||
+ | Installation | ||
+ | Nama Pengguna | ||
+ | Password | ||
+ | Nama Depan | ||
+ | Nama akhir | ||
+ | Alamat Email | ||
+ | Kota | ||
+ | Pilih Negara -> Perbaharui Profile | ||
+ | |||
+ | Installation | ||
+ | Nama lengkap situs | ||
+ | Nama singkat untuk situs (mis. kata tunggal) | ||
+ | Keterangan halaman depan -> Save Changes | ||
+ | |||
+ | ==Akses Moodle== | ||
+ | |||
+ | http://localhost/moodle/ | ||
+ | http://ip-address/moodle/ | ||
Line 120: | Line 145: | ||
− | === | + | ===Tuning=== |
'''WARNING''': ini tidak di perlukan. | '''WARNING''': ini tidak di perlukan. | ||
Line 160: | Line 185: | ||
Lakukan beberapa konfigurasi untuk [[Moodle]] yang akan kita operasikan. | Lakukan beberapa konfigurasi untuk [[Moodle]] yang akan kita operasikan. | ||
Beberapa parameter yang perlu di set adalah, | Beberapa parameter yang perlu di set adalah, | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
==Untuk Versi < 2.1== | ==Untuk Versi < 2.1== | ||
Line 195: | Line 191: | ||
Beberapa parameter yang perlu di set adalah, | Beberapa parameter yang perlu di set adalah, | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 06:57, 28 May 2018
Pertama-tama siapkan beberapa fasiltas pendukung Moodle seperti MySQL-server, PHP dll, antara lain dapat di install melalui perintah
Untuk Ubuntu 16.04
sudo apt-get install apache2 php7.0 php7.0-xmlrpc php7.0-mysql php7.0-gd php7.0-cli php7.0-curl \ mysql-client mysql-server libphp-adodb libgd-dev php7.0-curl php-pear php7.0-zip php7.0-intl \ php7.0-cli php7.0-common libapache2-mod-php7.0 php7.0 php7.0-mysql php7.0-fpm php7.0-soap \ php7.0-curl php7.0-gd php7.0-mysql php7.0-bz2 php7.0-xml imagemagick git unzip
a2dismod php5 a2enmod php7.0 service apache2 stop service apache2 start service apache2 restart
Atau Apache
/etc/init.d/apache2 restart
Setup Database
=Database Operasional
Setup root password (jika di perlukan saja)
mysql mysql> SET PASSWORD FOR root@localhost=PASSWORD('password');
Setup database operasonal dengan username & password akses
# mysql -u root -p Enter password: create database moodle; ALTER DATABASE moodle charset=utf8; grant INSERT,SELECT on root.* to moodle@localhost; grant CREATE, INSERT, SELECT, DELETE, UPDATE on moodle.* to moodle@localhost identified by "moodlepassword"; grant CREATE, INSERT, SELECT, DELETE, UPDATE on moodle.* to moodle identified by "moodlepassword"; exit
=Database Latihan
Password root 123456
# mysql -u root -p123456
create database moodle; ALTER DATABASE moodle charset=utf8; grant ALL on root.* to moodle@localhost; grant ALL on moodle.* to moodle@localhost identified by "moodle"; grant ALL on moodle.* to moodle identified by "moodle"; exit
Siapkan folder /var/moodledata/
Download language pack
https://download.moodle.org/download.php/direct/langpack/2.9/id.zip https://download.moodle.org/download.php/direct/langpack/3.0/id.zip https://download.moodle.org/download.php/direct/langpack/3.1/id.zip
Install language pack
mkdir /var/moodledata mkdir /var/moodledata/lang cp id.zip /var/moodledata/lang cd /var/moodledata/lang unzip id.zip chmod -Rf 777 /var/moodledata/lang/ chown -Rf www-data.www-data /var/moodledata/lang/
Install Moodle
Download
cd /usr/local/src wget https://download.moodle.org/download.php/direct/stable31/moodle-latest-31.tgz
Install
cp moodle-latest-31.tgz /var/www/html/ cd /var/www/html/ tar zxvf moodle-latest-31.tgz chown -Rf www-data.www-data /var/moodledata/ chmod -Rf 777 /var/www/html/moodle chown -Rf www-data.www-data /var/www/html/moodle
Lanjutkan dengan konfigurasi via web
http://localhost/moodle http://ip-address/moodle
Language -> id -> Selanjutnya Confirm paths -> Selanjutnya Type -> MySQL -> Selanjutnya Database settings Improved MySQL (native/mysqli) Database host localhost Database name moodle Database user moodle Database password moodle Tables prefix mdl_ unix socket (check) -> Selanjutnya
Installation -> Selanjutnya Server checks -> Selanjutnya
Installation Nama Pengguna Password Nama Depan Nama akhir Alamat Email Kota Pilih Negara -> Perbaharui Profile Installation Nama lengkap situs Nama singkat untuk situs (mis. kata tunggal) Keterangan halaman depan -> Save Changes
Akses Moodle
http://localhost/moodle/ http://ip-address/moodle/
Edit php.ini
Upload file besar
Edit php.ini
vi /etc/php5/apache2/php.ini
atau untuk PHP 7.0
vi /etc/php/7.0/apache2/php.ini
Edit
upload_max_filesize = 100M
Tuning
WARNING: ini tidak di perlukan.
PHP.ini settings:
vi /etc/php5/cli/php.ini
atau untuk PHP 7.0
vi /etc/php/7.0/apache2/php.ini
Pastikan
[opcache] opcache.enable = 1 opcache.memory_consumption = 128 opcache.max_accelerated_files = 4000 opcache.revalidate_freq = 60 ; Required for Moodle opcache.use_cwd = 1 opcache.validate_timestamps = 1 opcache.save_comments = 1 opcache.enable_file_override = 0 ; If something does not work in Moodle ;opcache.revalidate_path = 1 ; May fix problems with include paths ;opcache.mmap_base = 0x20000000 ; (Windows only) fix OPcache crashes with event id 487 ; Experimental for Moodle 2.6 and later ;opcache.fast_shutdown = 1 ;opcache.enable_cli = 1 ; Speeds up CLI cron ;opcache.load_comments = 0 ; May lower memory use, might not be compatible with add-ons and other apps.
Untuk Versi 2.1 ke atas
Lakukan beberapa konfigurasi untuk Moodle yang akan kita operasikan. Beberapa parameter yang perlu di set adalah,
Untuk Versi < 2.1
Lakukan beberapa konfigurasi untuk Moodle yang akan kita operasikan. Beberapa parameter yang perlu di set adalah,