Difference between revisions of "Moodle: Ubuntu 20.04 - Instalasi Moodle, OpenLiteSpeed, MariaDB, PHP 7.4"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 82: | Line 82: | ||
vi /usr/local/lsws/Example/html/moodle/config.php | vi /usr/local/lsws/Example/html/moodle/config.php | ||
$CFG->dbtype = 'mariadb'; | $CFG->dbtype = 'mariadb'; | ||
+ | |||
+ | |||
+ | Enable php7.4 intl | ||
+ | |||
+ | apt install php7.4-intl | ||
Edit php.ini | Edit php.ini |
Revision as of 05:41, 14 December 2020
Instalasi OpenLiteSpeed
Setup Database
Kalau Operasional
Setup root password (jika di perlukan saja)
mysql mysql> SET PASSWORD FOR root@localhost=PASSWORD('123456'); 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=utf8mb4; ALTER DATABASE moodle CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; 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
Kalau hanya Latihan
Password root 123456
# mysql -u root -p123456
create database moodle; ALTER DATABASE moodle charset=utf8mb4; ALTER DATABASE moodle CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci; 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
/etc/init.d/mysql restart
Siapkan folder /var/moodledata/
Download language pack
sudo su cd /usr/local/src wget https://download.moodle.org/download.php/direct/langpack/3.10/id.zip
Install language pack
apt install unzip cd /usr/local/src mkdir -p /usr/local/lsws/Example/moodledata/lang cp id.zip /usr/local/lsws/Example/moodledata/lang cd /usr/local/lsws/Example/moodledata/lang unzip id.zip chmod -Rf 777 /usr/local/lsws/Example/ chown -Rf www-data: /usr/local/lsws/Example/
Install Moodle
Download
cd /usr/local/src wget https://download.moodle.org/download.php/direct/stable310/moodle-latest-310.tgz
Ekstrak
cd /usr/local/src cp moodle-latest-310.tgz /usr/local/lsws/Example/html/ cd /usr/local/lsws/Example/html/ tar zxvf moodle-latest-310.tgz chown -Rf www-data: /var/moodledata/ chmod -Rf 777 /var/www/html/moodle chown -Rf www-data: /var/www/html/moodle
Edit config.php
vi /usr/local/lsws/Example/html/moodle/config.php $CFG->dbtype = 'mariadb';
Enable php7.4 intl
apt install php7.4-intl
Edit php.ini
vi /usr/local/lsws/lsphp74/etc/php/7.4/litespeed/php.ini extension=intl
vi /usr/local/lsws/lsphp73/etc/php/7.3/litespeed/php.ini extension=intl
Restart openlitespeed
sudo /usr/local/lsws/bin/lswsctrl restart
Lanjutkan dengan konfigurasi via web
http://localhost/moodle http://ip-address/moodle
Language -> id -> Selanjutnya Web Address http://ip-address/moodle Moodle Directory /usr/local/lsws/Example/html/moodle Data Directory /var/moodledata/ Confirm paths -> Selanjutnya Choose database driver 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 -> Lanjut 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/
Youtube
- YOUTUBE: Instalasi web server Apache2 PHP7.4 Percona5.7
- YOUTUBE: MOODLE instalasi server e-learning moodle