Instalasi Moodle dengan nginx database postgresql pada sistem freebsd

  1. Update System

2. Instalasi Nginx

Konfigurasi Server Block

Membuat folder untuk document root.

Membuat folder untuk menyimpan file konfigurasi server block.

Tambahkan konfigurasi di bawah ini sebelum penutup http.

Jika tidak ada kesalahan.

nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful

Install PHP (moodle4.5 menggunakan php81

Buka file konfigurasi PHP-FPM.

Aktifkan dan sesuaikan konfigurasi berikut.

Buat file php.ini

Opsi yang diaktifkan dan diubah.

Aktifkan dan jalankan service php-fpm.

Konfigurasi server block untuk membaca script PHP.

Ubah konfigurasinya menjadi seperti di bawah ini (versi php disesuaikan dengan php yang diinstall).

Buat file info.php.

untuk hapus file info php dan index.html

cd /var/www/lms.uncen.ac.id

download file moodle

sudo fetch https://packaging.moodle.org/stable405/moodle-latest-405.tgz

extrak file moodle tar

tar xzvf moodle-latest-405.tgz

copy isi file moodle ke folder public

cp -Rfv moodle/* /var/www/lms.uncen.ac.id/public_html

chown -R www:www /var/www/lms.uncen.ac.id

mkdir /var/www/lms.uncen.ac.id/moodledata

chown -R www:www /var/www/lms.uncen.ac.id/moodledata

3. Instalasi Database Postgresql

catatan apabilah di restrart server database posgre di ulang install dan prosedur runing databasenya

apabila menemukan error

Error: database driver problem detected

The site administrator should verify server configuration

PHP has not been properly configured with the PGSQL extension so that it can communicate with PostgreSQL. Please check your php.ini file or recompile PHP.

ubah dan aktihkan extension pgsql pada file php.ini

Leave a Reply

Your email address will not be published. Required fields are marked *