Thursday, 12 March 2026

Service yang WAJIB hidup untuk Moodle

 

Guru Duan, untuk mengakses Moodle di http://localhost, ada 3 service utama yang harus hidup.


Service yang WAJIB hidup untuk Moodle

1️⃣ Web Server

Menampilkan halaman web Moodle.

Service:

nginx.service

Start:

sudo systemctl start nginx

2️⃣ PHP Engine

Menjalankan kode PHP Moodle.

Service:

php8.2-fpm.service

Start:

sudo systemctl start php8.2-fpm

3️⃣ Database

Menyimpan data Moodle.

Service:

mariadb.service

Start:

sudo systemctl start mariadb

Jalankan semua sekaligus

Supaya cepat:

sudo systemctl start nginx php8.2-fpm mariadb

Setelah itu buka browser:

http://localhost/moodle

atau jika di root:

http://localhost

Service yang TIDAK wajib untuk Moodle

Ini tidak mempengaruhi Moodle:

  • pihole-FTL

  • cloudflared

  • docker

  • redis (kecuali dipakai cache)

  • openvpn


Cara cek apakah sudah hidup

systemctl status nginx php8.2-fpm mariadb

Harus muncul:

Active: active (running)

Tips supaya cepat

Guru Duan bisa buat alias:

Tambahkan di ~/.bashrc

alias moodleon="sudo systemctl start nginx php8.2-fpm mariadb"
alias moodleoff="sudo systemctl stop nginx php8.2-fpm mariadb"

Lalu reload:

source ~/.bashrc

Sekarang cukup ketik:

moodleon

Jika Guru Duan mau, saya juga bisa tunjukkan cara mengetahui dalam 3 detik apakah Moodle tidak bisa diakses karena nginx, php, atau database. Ini trik yang sangat membantu saat debugging server.

Share:

0 comments:

Post a Comment