Error Install Moodle cpanel

Jika anda menemukan masalah pada saat installasi moodle, dengan warning seperti berikut:

Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /home/ /public_html/e-learning/lib/accesslib.php on line 5288

Buat file .htaccess pada directori Moodle, kemudian masukkan kode berikut:

AddHandler application/x-httpd-php53 .php5 .php4 .php .php3 .php2 .phtml
AddType application/x-httpd-php53 .php5 .php4 .php .php3 .php2 .phtml

Semoga membantu

4 Comments

    1. Setelah log in ke Cpanel, klik “File manager”, kemudian masuk ke folder tempat kita install Moodle.
      Pada folder tersebut perhatikan, apakah sudah ada file .htaccess atau belum. Jika sudah ada, klik file tersebut, kemudian klik menu edit, setelah editor terbuka, paste kan code diatas. Klik “Save Changes”

      Jika file .htaccess berlum tersedia, buat file baru dengan mengklik menu “New File”.
      Isi dengan nama: .htaccess terus klik OK.
      Setelah file .htaccess terbentuk, klik file tersebut, kemudian klik menu edit, setelah editor terbuka, paste kan code diatas. Klik “Save Changes”

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.