{"id":881,"date":"2011-07-22T20:49:14","date_gmt":"2011-07-22T20:49:14","guid":{"rendered":"http:\/\/www.rumahweb.com\/journal\/?p=881"},"modified":"2022-02-18T11:43:24","modified_gmt":"2022-02-18T04:43:24","slug":"penyesuaian-disable-function-cms-moodle-di-rumahweb","status":"publish","type":"post","link":"https:\/\/www.rumahweb.com\/journal\/penyesuaian-disable-function-cms-moodle-di-rumahweb\/","title":{"rendered":"Penyesuaian Disable Function CMS Moodle di Rumahweb"},"content":{"rendered":"\n<p>Setelah Anda selesai melakukan instalasi CMS Moodle dan mengakses nama domainnya, maka tampilan website akan terlihat berantakan. Hal ini disebabkan karena ada 2 function yang statusnya di disable dari sisi server untuk alasan keamanan. Solusinya, Anda bisa menyesuaikan script disable function Moodle terlebih dahulu. <\/p>\n\n\n\n\n\n<p>Penyesuaian ini dilakukan dengan cara mengubah 2 function yang statusnya di disable, ke function yang berbeda. Sebelum masuk ke langkah penyesuaiannya, kami akan menjelaskan terlebih dahulu apa itu CMS Moodle.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"apa-itu-moodle\">Apa itu Moodle?<\/h2>\n\n\n\n<p>Moodle merupakan salah satu CMS (Content Management System) yang bisa Anda gunakan untuk membuat website pembelajaran atau elearning. CMS Moodle dilengkapi dengan berbagai fitur yang memudahkan Anda untuk berbagi materi, modul pembelajaran hingga Ujian online.<\/p>\n\n\n\n<p>CMS Moodle tersedia gratis, dan bisa diinstall dengan mudah melalui cPanel atau Plesk panel hosting Anda. Panduan instalasinya bisa Anda baca melalui artikel berikut:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.rumahweb.com\/journal\/cara-install-moodle-di-plesk-panel\/\" title=\"Cara install Moodle di Plesk\">Cara install Moodle di Plesk<\/a> (Bagi pengguna layanan WordPress Hosting)<\/li><li><a href=\"https:\/\/www.rumahweb.com\/journal\/installasi-cms-moodle-melalui-softaculous\/\" title=\"Cara install Moodle di cPanel\">Cara install Moodle di cPanel<\/a> (Bagi pengguna layanan Cloud dan Shared Hosting)<\/li><\/ul>\n\n\n\n<p>Setelah instalasi Moodle selesai, Anda bisa mengikuti panduan berikut untuk menyesuaikan script disable functionnya. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"menyesuaikan-script-disable-function-di-moodle\">Menyesuaikan script disable function di Moodle<\/h2>\n\n\n\n<p>Moodle menggunakan fungsi readfile() dan fpassthru(), dimana kedua fungsi ini termasuk dalam disable function PHP pada server hosting (shared) di Rumahweb.<\/p>\n\n\n\n<p>Solusi untuk mengatasi permasalah ini adalah dengan <span style=\"text-decoration: underline;\">mengganti function Moodle<\/span> tersebut dengan function lain yang memiliki fungsi yang sama seperti berikut ini:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>function <em>readfile()<\/em> bisa digantikan dengan echo <em>file_get_contents()<\/em><br \/>function <em>fpassthru()<\/em> bisa digantikan dengan echo <em>stream_get_contents()<\/em><\/p><\/blockquote>\n\n\n\n<p>Pada moodle terbaru, yakni versi 3.11 penggunaan fungsi readfile() dan fpassthru() ada pada file berikut ini :<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"menyesuaikan-function-readfile\">Menyesuaikan function r<strong>eadfile()<\/strong><\/h3>\n\n\n\n<div id=\"stcpDiv\">\n<pre>.\/lib\/filelib.php:  return readfile($path);\n.\/lib\/jslib.php:  readfile($jspath);\n.\/lib\/setup.php:  readfile(\"$CFG-&gt;dataroot\/climaintenance.html\");\n.\/lib\/csslib.php:  readfile($csspath);\n.\/lib\/editor\/tinymce\/plugins\/loader.php:  readfile($file);\n.\/theme\/image.php:  readfile($imagepath);\n.\/theme\/image.php:  readfile($imagepath);\n.\/theme\/jquery.php:  readfile($file);\n.\/theme\/yui_image.php:  readfile($imagepath);\n.\/theme\/font.php:  readfile($fontpath);\n.\/theme\/font.php:  readfile($fontpath);<\/pre>\n<\/div>\n\n\n\n<p>Lalu bisa Anda ubah menjadi berikut: <\/p>\n\n\n\n<div id=\"stcpDiv\">\n<pre>.\/lib\/filelib.php:  echo file_get_contents($path);\n.\/lib\/jslib.php:  echo file_get_contents($jspath);\n.\/lib\/setup.php:  echo file_get_contents(\"$CFG-&gt;dataroot\/climaintenance.html\");\n.\/lib\/csslib.php:  echo file_get_contents($csspath);\n.\/lib\/editor\/tinymce\/plugins\/loader.php:  echo file_get_contents($file);\n.\/theme\/image.php:  echo file_get_contents($imagepath);\n.\/theme\/image.php:  echo file_get_contents($imagepath);\n.\/theme\/jquery.php:  echo file_get_contents($file);\n.\/theme\/yui_image.php:  echo file_get_contents($imagepath);\n.\/theme\/font.php:  echo file_get_contents($fontpath);\n.\/theme\/font.php:  echo file_get_contents($fontpath);<\/pre>\n<\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"menyesuaikan-function-fpassthru\"><strong>Menyesuaikan function fpassthru()<\/strong><\/h3>\n\n\n\n<div id=\"stcpDiv\">\n<pre>.\/auth\/ldap\/ntlmsso_magic.php:  fpassthru($handle);<\/pre>\n<\/div>\n\n\n\n<p>diubah menjadi berikut ini<\/p>\n\n\n\n<div id=\"stcpDiv\">\n<pre>.\/auth\/ldap\/ntlmsso_magic.php:  echo stream_get_contents($handle);<\/pre>\n<\/div>\n\n\n\n<p>Setelah penyesuaian function dilakukan, selanjutnya Anda bisa mengakses nama domain Anda kembali. Jika masih tidak bisa, jangan lupa untuk <a href=\"https:\/\/www.rumahweb.com\/journal\/cara-menghapus-cache-browser\/\" title=\"cara menghapus cache browser\">menghapus cache pada browser<\/a> yang digunakan. <\/p>\n\n\n\n<p>Jika Anda mengalami kendala untuk merubah fungsi tersebut, silahkan hubungi technical support Rumahweb melalui livechat&nbsp; atau silahkan kirim email ke teknis@rumahweb.com untuk dibantu.<\/p>\n\n\n\n<p>Demikian panduan <span style=\"text-decoration: underline;\">memperbaiki tampilan CMS Moodle<\/span> dari Rumahweb. Semoga bisa membantu \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setelah Anda selesai melakukan instalasi CMS Moodle dan mengakses nama domainnya, maka tampilan website akan terlihat berantakan. Hal ini disebabkan karena ada 2 function yang statusnya di disable dari sisi server untuk alasan keamanan. Solusinya, Anda bisa menyesuaikan script disable function Moodle terlebih dahulu. Penyesuaian ini dilakukan dengan cara mengubah 2 function yang statusnya di [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23065,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[142],"tags":[137,136],"class_list":{"0":"post-881","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tips-dan-trik","8":"tag-disable-function","9":"tag-moodle"},"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.rumahweb.com\/journal\/wp-content\/uploads\/2011\/07\/banner-Penyesuaian-Disable-Function-CMS-Moodle.png","jetpack_shortlink":"https:\/\/wp.me\/p8n3G7-ed","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/posts\/881","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/comments?post=881"}],"version-history":[{"count":0,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/posts\/881\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/media\/23065"}],"wp:attachment":[{"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/media?parent=881"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/categories?post=881"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rumahweb.com\/journal\/wp-json\/wp\/v2\/tags?post=881"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}