Difference between revisions of "Instalasi Moodle di Debian"
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Install Repo dotdeb== | |
− | |||
+ | Edit | ||
+ | |||
+ | vi /etc/apt/sources.list | ||
+ | |||
+ | Tambahkan | ||
+ | |||
+ | deb http://packages.dotdeb.org jessie all | ||
+ | |||
+ | Install key | ||
+ | |||
+ | sudo su | ||
+ | cd /etc/apt/ | ||
+ | wget https://www.dotdeb.org/dotdeb.gpg | ||
+ | sudo apt-key add dotdeb.gpg | ||
+ | |||
+ | Update | ||
+ | |||
+ | apt update | ||
+ | |||
+ | |||
+ | ==Pendukung== | ||
Untuk Debian Jeese | Untuk Debian Jeese | ||
− | apt-get | + | apt-get remove --purge php5 php5-mysql libapache2-mod-php5 php5-gd php5-curl \ |
+ | php5-xmlrpc php5-intl php5-cli php5-common php5-json php5-readline | ||
+ | |||
+ | apt install apache2 mysql-server unzip \ | ||
+ | php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-gd php7.0-curl php7.0-xml php7.0-zip \ | ||
+ | php7.0-xmlrpc php7.0-intl php7.0-cli php7.0-common php7.0-json php7.0-readline | ||
+ | php7.0-soap php7.0-mbstring -y | ||
Edit | Edit | ||
− | vi /etc/ | + | vi /etc/php/7.0/apache2/php.ini |
+ | vi /etc/php/7.0/cli/php.ini | ||
+ | |||
;;;;;;;;;;;;;;;;;;;;;; | ;;;;;;;;;;;;;;;;;;;;;; | ||
Line 41: | Line 69: | ||
ALTER DATABASE moodle charset=utf8; | ALTER DATABASE moodle charset=utf8; | ||
exit; | exit; | ||
− | |||
− | |||
− | |||
− | |||
==Download== | ==Download== | ||
Line 75: | Line 99: | ||
chmod -Rf 777 /var/www/html/moodle | chmod -Rf 777 /var/www/html/moodle | ||
chown -Rf www-data.www-data /var/www/html/moodle | chown -Rf www-data.www-data /var/www/html/moodle | ||
+ | |||
+ | Restart | ||
+ | |||
+ | /etc/init.d/mysql restart | ||
+ | /etc/init.d/apache2 restart | ||
Lanjutkan proses konfigurasi moodle menggunakan [[Web]] dengan cara | Lanjutkan proses konfigurasi moodle menggunakan [[Web]] dengan cara |
Latest revision as of 09:47, 12 December 2017
Install Repo dotdeb
Edit
vi /etc/apt/sources.list
Tambahkan
deb http://packages.dotdeb.org jessie all
Install key
sudo su cd /etc/apt/ wget https://www.dotdeb.org/dotdeb.gpg sudo apt-key add dotdeb.gpg
Update
apt update
Pendukung
Untuk Debian Jeese
apt-get remove --purge php5 php5-mysql libapache2-mod-php5 php5-gd php5-curl \ php5-xmlrpc php5-intl php5-cli php5-common php5-json php5-readline
apt install apache2 mysql-server unzip \ php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-gd php7.0-curl php7.0-xml php7.0-zip \ php7.0-xmlrpc php7.0-intl php7.0-cli php7.0-common php7.0-json php7.0-readline php7.0-soap php7.0-mbstring -y
Edit
vi /etc/php/7.0/apache2/php.ini vi /etc/php/7.0/cli/php.ini
;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; extension=mysql.so extension=gd.so
; memory_limit = 128M post_max_size = 80M upload_max_filesize = 80M
Restart Apache
/etc/init.d/apache2 restart
atau
service apache2 stop service apache2 start service apache2 restart
Setup Database
mysqladmin -u root password "mySecurePassword" mysql -u root -p
CREATE DATABASE moodle; ALTER DATABASE moodle charset=utf8; exit;
Download
cd /usr/local/src wget https://download.moodle.org/download.php/direct/stable34/moodle-latest-34.tgz wget https://download.moodle.org/download.php/direct/langpack/3.4/id.zip
Install
lakukan
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
cd /usr/local/src cp moodle-latest-34.tgz /var/www/html/ cd /var/www/html/ tar zxvf moodle-latest-34.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
Restart
/etc/init.d/mysql restart /etc/init.d/apache2 restart
Lanjutkan proses konfigurasi moodle menggunakan Web dengan cara mengakses ke alamat,
http://localhost/moodle
Untuk Versi 2.1 ke atas
Lakukan beberapa konfigurasi untuk Moodle yang akan kita operasikan. Beberapa parameter yang perlu di set adalah,
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
Untuk Versi < 2.1
Lakukan beberapa konfigurasi untuk Moodle yang akan kita operasikan. Beberapa parameter yang perlu di set adalah,
Language -> id Web Address -> http://ip-address/moodle
Type mysql Host Server localhost Database moodleNow you need to configure the database where most Moodle data will be stored. Database may be created if database user has needed permissions, username and password must already exist. Table prefix is optional. Pengguna moodle Password moodle Tables prefix mdl_
[check] Unattended operation
Nama Pengguna admin Password baru Admin123456! Nama Depan admin Nama akhir admin Alamat Email email@host Kota Jakarta Pilih Negara Indonesia
Nama Lengkap Situs ------ nama Singkat Situs ------
lengkapi username dan password untuk administrator. Pada contoh digunakan username admin dengan passNow you need to configure the database where most Moodle data will be stored. Database may be created if database user has needed permissions, username and password must already exist. Table prefix is optional.word Admin123456!
Selesai sudah proses instalasi Moodle, kita dapat mengoperasikan moodle dengan mengakses
http://localhost/moodle/