Skip to content

Moodle

Install Moodle Server Lokal

masuk server : (asumsi sudah terinstall apache2, mysql, phpmyadmin)

sudo su
apt update
apt -y install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
apt -y install php
apt -y install php-common php-mysql php-xml php-xmlrpc php-curl php-gd php-imagick php-cli php-dev php-imap php-mbstring php-opcache php-soap php-zip php-cli php-intl imagemagick git zip libgd-dev libapache2-mod-php

lalu

vi /etc/php/<versi>/apache2/php.ini

lalu

upload_max_filesize = 100M
post_max_size = 48M
memory_limit = 512M
max_execution_time = 600
max_input_vars = 3000
max_input_time = 1000
systemctl restart apache2.service
vi /var/www/html/phpinfo.php
    <?php phpinfo( ); ?>
buat database moodle (aku lwat phpmyadmin)
mkdir -p /var/moodledata/lang
cd /var/moodledata/lang
wget https://download.moodle.org/download.php/direct/langpack/3.8/id.zip
unzip id.zip
chmod -Rf 777 /var/moodledata/lang/
chown -Rf www-data: /var/moodledata/lang/

cd /home/user/
# wget https://download.moodle.org/download.php/direct/stable38/moodle-latest-38.tgz
wget https://download.moodle.org/download.php/stable310/moodle-3.10.1.tgz
tar zxvf moodle-3.10.1.tgz
mv moodle /var/www/html/
cd /var/www/html/
chown -Rf www-data: /var/moodledata/
chmod -Rf 777 /var/www/html/moodle
chown -Rf www-data: /var/www/html/moodle

lanjut instalalsi di web

    *catatan : Data Directory /var/moodledata/