Difference between revisions of "IPv6 Web: Moodle"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | '''CATATAN PROBLEM:''' | ||
+ | * pada instalasi full IPv6 gagal sampai copyright | ||
+ | * pada instalasi di mulai IPv4, problem redirecting di IPv6 | ||
+ | |||
+ | |||
+ | |||
==/etc/apt/source.list /etc/hosts IPv6 interface== | ==/etc/apt/source.list /etc/hosts IPv6 interface== | ||
Line 30: | Line 36: | ||
apt -y install apache2 php php-xmlrpc php-mysql php-gd php-cli php-curl \ | apt -y install apache2 php php-xmlrpc php-mysql php-gd php-cli php-curl \ | ||
− | + | libphp-adodb libgd-dev php-curl php-pear php-zip php-intl \ | |
php-common libapache2-mod-php php-fpm php-soap \ | php-common libapache2-mod-php php-fpm php-soap \ | ||
php-bz2 php-xml imagemagick git unzip php-mbstring | php-bz2 php-xml imagemagick git unzip php-mbstring | ||
Line 38: | Line 44: | ||
service apache2 stop | service apache2 stop | ||
service apache2 start | service apache2 start | ||
− | |||
==Database== | ==Database== | ||
Line 93: | Line 98: | ||
chown -Rf www-data.www-data /var/www/html/moodle | chown -Rf www-data.www-data /var/www/html/moodle | ||
− | Lanjutkan | + | ==Lanjutkan konfigurasi via IPv4 dulu== |
− | http:// | + | Lanjutkan dengan konfigurasi via web IPv4 |
+ | |||
+ | http://IPv4-address/moodle | ||
Language -> id -> Selanjutnya | Language -> id -> Selanjutnya | ||
Line 131: | Line 138: | ||
+ | |||
+ | ==Ubah config.php== | ||
+ | |||
+ | Agar menjadi situs IPv6. Edit | ||
+ | |||
+ | vi /var/www/html/moodle/config.php | ||
+ | |||
+ | $CFG->wwwroot = 'http://[2345::3]/moodle'; | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[IPv6]] | * [[IPv6]] |
Latest revision as of 17:32, 4 February 2019
CATATAN PROBLEM:
- pada instalasi full IPv6 gagal sampai copyright
- pada instalasi di mulai IPv4, problem redirecting di IPv6
/etc/apt/source.list /etc/hosts IPv6 interface
Edit /etc/apt/sources.list pastikan
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse
Edit /etc/hosts pastikan
::1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
Set IPv6 di interface, misalnya,
ip addr add <ipv6addr>/<ipv6prefix> dev enp3s0 ip route add ::/0 via <ipv6gayeway> dev enp2s0 ip addr add 2345::3/64 dev enp3s0
akan lebih baik juga IPv6 address yang digunakan benar2 tersambung ke Internet.
Instalasi
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb sudo apt update sudo apt install percona-server-server-5.7
Masukan root password percona jika di tanya. Asumsi password root = 123456.
apt -y install apache2 php php-xmlrpc php-mysql php-gd php-cli php-curl \ libphp-adodb libgd-dev php-curl php-pear php-zip php-intl \ php-common libapache2-mod-php php-fpm php-soap \ php-bz2 php-xml imagemagick git unzip php-mbstring
Restart apache2
service apache2 stop service apache2 start
Database
Untuk operasional, jangan menggunakan username & password seperti contoh di bawah ini. Ini hanya contoh untuk memudahkan saja.
mysql -u root -h ::1 -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@'::1' 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
cd /usr/local/src wget https://download.moodle.org/download.php/direct/langpack/3.6/id.zip
Install language pack
cd /usr/local/src 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/stable36/moodle-latest-36.tgz
Install
cd /usr/local/src cp moodle-latest-36.tgz /var/www/html/ cd /var/www/html/ tar zxvf moodle-latest-36.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 konfigurasi via IPv4 dulu
Lanjutkan dengan konfigurasi via web IPv4
http://IPv4-address/moodle
Language -> id -> Selanjutnya Web Address http://[ipv6address]/moodle Moodle Directory /var/www/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
Ubah config.php
Agar menjadi situs IPv6. Edit
vi /var/www/html/moodle/config.php
$CFG->wwwroot = 'http://[2345::3]/moodle';